Skip to content

Instantly share code, notes, and snippets.

@sirodoht
Created September 4, 2019 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirodoht/0829e745ff86af5a9b442ad3072c58ff to your computer and use it in GitHub Desktop.
Save sirodoht/0829e745ff86af5a9b442ad3072c58ff to your computer and use it in GitHub Desktop.

How to generate a self-signed SSL using openssl

$ openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365

-nodes is for not requiring a passphrase (for the key).

How to remove passphrase from key using openssl

$ openssl rsa -in key.pem -out new-key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment