I have the need to generate an SSL cert (Apache2) about once every 3 months. And since I'm cheap, I don't ever actually *buy* one, I just self-sign it. And every time I forget the commands needed. So, here they are, for my reference only.
1) Generate Private Keyopenssl genrsa -des3 -out server.key 10242) Generate a CSR
openssl req -new -key server.key -out server.csr3) Remove passphrase
cp server.key server.key.org openssl rsa -in server.key.org -out server.key4) Generate Self-Signed Cert
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
This entry is from my tutorial section and was written on May 11, 2007. It's been tagged with Tips, Tricks and Hacks and My Big Fat Server. There have been 0 comments so far.