There are many articles on how to create a private key/CSR/SSL (TLS) certificate. However I want something else.
I lost my private key (accidentally deleted the directory). I managed to recover the server certificate (signed by my own CA).
Seems that I need to generate a new private key, CSR. To lessen the burden I would like to create a openssl configuration using the existing certificate. (Since I always loose my cnf that works fine.) The long way would be to get the text output from the certificate:
openssl x509 -text -noout -in ...
then recall the settings to put the config file…
I would like a tool or script that I can download and it would create a config file that I could use to generate a new CSR (after creating a private key – then use these to generate a new certificate).
Anyone know such a tool/script?