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!
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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.