Question

How to remove passphrase from a certificate already issued by a CA and active on the server?

Hello. Is there a way to remove the passphrase from a certificate considering it has already been issued and activated by a CA?

I mean, what happens now is that I’ve purchased a certificate with a CA from Namecheap and activate it, they issued me a few certificate files which I combined and properly set it up on my nginx server, however, every time I have to restart nginx I’m asked for the passphrase

What I don’t’ understand is that I’ve executed the command which removes the passphrase from the certificate before submitting its CSR to the CA…

Is there a way I can safely remove the passphrase from my certificate considering it was already issued by the CA and is active on my server? Thanks in advance.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thank you Andrew SB and gparent! <br> <br>The following command was the only one which worked out of the box for me: <br> <br>---- <br>sudo openssl rsa -in /path/to/example.com.key -out /path/to/example.com.key <br>---- <br> <br>Thank you gparent for the explanation regarding where the passphrase is stored. <br> <br>

Yeah, I wrote the command this way so that you could have the output file separate from your input file. <br> <br>Simply adjust the config appropriately to use the new, unencrypted key, or overwrite the encrypted key with the non-encrypted one.

@Adriano: You then either need to point to the new <code>/etc/nginx/ssl/example.com.key.decrypted</code> file in the Nginx configuration or move the password encrypted key out of the way and rename the decrypted file to <code>/etc/nginx/ssl/example.com.key</code>