Any chance to import cert/key from backup .xml?
-
Is there any chance to import a cert/key from a backup .xml file?
Try to copy the content of <cert></cert> and <prv></prv> into the import fields (X.509 (PEM)) but getting this error:The following input errors were detected:
This certificate does not appear to be valid. -
@slu You can try to download a new backup, then edit that backup by pasting the same info from the old backup, then restoring from the edited backup.
Never tried but should work.
-
@jarhead
yes thats my plan B, but I can not restart the system at the moment... -
The certs are base64 encoded in the config so you need to decode them first to import it via the cert manager.
Steve
-
@stephenw10 said in Any chance to import cert/key from backup .xml?:
The certs are base64 encoded in the config so you need to decode them first to import it via the cert manager.
Steve
Good to know!
Just tried and it works great.https://www.opinionatedgeek.com/Codecs/Base64Decoder
-
thank you Steve, that was the problem!
Simply decode under Linux:
cat certb64 | base64 -d > cert cat keyb64 | base64 -d > key