Self signed SSL cert + key in a single line of bash

Been using this loads to secure Cloudflare origins.

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/CN=localhost'

Leave a Reply

Your email address will not be published. Required fields are marked *