Report this

What is the reason for this report?

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

Posted on May 29, 2014

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.



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!

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.

The passphrase is not on the certificate or CSR, so you never removed anything. It is on the key file. <br> <br>openssl rsa -in /path/to/keyfile out -/path/to/keyfile.decrypted <br> <br>will do what you want.

Hey gparent. Thanks for your help. <br> <br>Unfortunately it didn’t work for me. My serve key is stored in etc/nginx/ssl/, let’s say it is called example.com.key, so I’ve tried to remove the passphrase from it using the command you suggested such as: <br> <br>openssl rsa -in /etc/nginx/ssl/example.com.key out -/etc/nginx/ssl/example.com.key.decrypted <br> <br>Could you please tell me if is it right? <br> <br>I’ve restart nginx after executing the command but I’m still being asked for the passphrase.

@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>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.