SSL Certificate Generation in 30 seconds*
September 18th, 2007Here’s my mini guide on creating SSL certificates for use in Apache.
I create a lot of these things, so saving 45 seconds per request really adds up!
* Well, it depends how fast you can type copy and paste. Step 1- create the key and request
openssl req -new > new.cert.csr
Step 2- remove the passphrase from the key
openssl rsa -in privkey.pem -out server.key
Step 3 - convert request into signed cert
openssl x509 -in new.cert.csr -out server.crt -req -signkey server.key -days 365
This will create you a self-signed certificate. It will work fine, but I highly recommend you get it signed by a trusted party if you are using it in a live enviroment.
| Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo |
Was this post useful to you? Let me know, buy me a beer!
Alternatively, if you're feeling impecunious, you may like to subscribe to my RSS feed, or see other articles in the Linux category.