openssl Cheat Sheet

Create a self-signed SSL certificate
openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout -out

Create a new CSR
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key

Check that key files match cert & request files:
openssl rsa -noout -modulus -in FILE.key
openssl req -noout -modulus -in FILE.csr
openssl x509 -noout -modulus -in FILE.cer

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.