How to: Quick and dirty SSL Cert

How to: Quick and dirty SSL Cert

Use openssl to generate a certificate

Quick'n'dirty SSL certificate generation with OpenSSL:

openssl genrsa -out pkey.pem 2048
openssl req -new -x509 -days 3650 -key pkey.pem -out cert.pem

NOTE: When asked for "Common Name (e.g. server FQDN or YOUR name)" you should reply with the same value of your server.

Happy Hacking!

Image: Image by upklyak on Freepik