Reputation: 397
Had run below commands to generate a .csr and .key file under /opt/certs/ folder.
1) openssl ecparam -out name.key -name prime256v1 -genkey
2) openssl req -new -sha384 -key name.key -out name.csr -config name.cnf
3) openssl req -in name.csr -text
However, now the folder /opt/certs/ is deleted after reboot and the name.key file is lost. I have the name.csr file as backup and name.pem key file also generated/available.
Is there a way to recover or recreate/generate ".key" file again from the existing name.csr and/or name.pem files, without re-issuing or re-creating again certs ? The output of the lost .key file had BEGIN/END EC PARAMETERS, followed by BEGIN/END EC PRIVATE KEY
Thanks!
Upvotes: 0
Views: 117