Creating your own SSL certificates

October 7, 2009

If you need a SSL certificate, it is quite easy to create them with OpenSSL. Of course, every browser will issue a warning for self-signed certificates.

Create a private key (4096-bit):

openssl genrsa -des3 -out privkey.pem 4096

Create a certificate request:

openssl req -new -key privkey.pem -out cert.csr

Create a self-signed certificate (valid for 10 years):

openssl req -new -x509 -key privkey.pem -out cacert.pem -days 3652

Decrypt a private key (to be able to (re)start the webserver without requiring a certificate password):

openssl rsa -in privkey.pem -out privkey.pem
« Why does the Meaningo search engine not let you to find anything? Using deprecated code in PHP5.3 »

0 Responses to Creating your own SSL certificates

    There are currently no comments.

Comments are closed for this post