Wednesday, October 5, 2011

Remove passphrase from SSL key

We have NGINX with SSL and automatically deploy with a script. We recently changed SSL certs and they were setup with a password, which makes it pretty hard to automatically deploy. I found this awesome tip on this blog for removing the password:

$ cp server.key
$ openssl rsa -in -out server.key
The newly created server.key file has no more passphrase in it.