(This is extracted from my Apache course materials, but it's a useful howto in its own right.)
To generate a self-signed SSL certificate, you will need openssl installed first.
Then follow these steps:
openssl genrsa -out server.key 1024openssl req -new -key server.key -out server.csrCountry Name (2 letter code) [GB]:GB State or Province Name (full name) []:. Locality Name (eg, city) [Newbury]:Birmingham Organization Name (eg, company) [My Company Ltd]:Talis Organizational Unit Name (eg, section) []:Library Products Common Name (eg, your name or your server's hostname) []:prism.talis.com Email Address []:. Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:. An optional company name []:.The really important one is the Common Name: this must match the domain name which will serve the SSL site; otherwise connecting clients will get a prompt about a mismatch between the certificate's host name and the actual host name of the server.
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crtrm server.csr (you don't need it any more)If I get round to it I'll do another entry explaining how to make Apache use them.
Comments
will install on open ssl
I'll try this on my apache box 2, it has open / mod ssl.
I followed yours and it
I followed yours and it works well, now to bookmark your site so I don't have to google next time and get a different tut.
Nice post thanks!
Nice post thanks!
Thanks!
I'll be sure to try this. I use Lighttpd instead of Apache, so I'll see what I can do.
Good howto
This is very good article on creating certificate, btw you can also use the CA .sh script to create it .
There's 1000s of these
There's 1000s of these tutorials on the net, each one a little different. I followed yours and it works well, now to bookmark your site so I don't have to google next time and get a different tut.
Eventually you want a signed
Eventually you want a signed one but a cheap signed for $15, not one of those $500 ripoffs.
PS: Your ASCII captcha sucks and is broken! No matter how many times a human tries, the human always gets it wrong. I had to clear cookies and restart.
I'll turn that one off, I
I'll turn that one off, I think! Thanks for letting me know.
Thanks for this I have to
Thanks for this
I have to set up SSL once every several months and each time it's like the first time, I just forget what needs doing.
I'll bookmark this for future reference.
I know what you mean - it's
I know what you mean - it's always such a manual process when registering for an SSL certificate.
Interesting
This sounds interesting to me, having in mind that 5 SSL certificates goes form $80-100 per year.
And one can be used for a single domain, which is fine. ;) Thanks for sharing this information with us, pleas if you have more, give us more...
all the best to you. ;)