There is a snippet that i’ve been using to create openssl self signed certificates for my devel env.

openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
cp server.key
openssl rsa -in -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt


To check your ssl certificate:

openssl x509 -noout -modulus -in | openssl md5
openssl rsa -noout -modulus -in myserver.key | openssl md5