Skip to content

Instantly share code, notes, and snippets.

@cheiff
Last active August 4, 2022 22:06
Show Gist options
  • Save cheiff/d5352201b038228e99ed80d620ab243b to your computer and use it in GitHub Desktop.
Save cheiff/d5352201b038228e99ed80d620ab243b to your computer and use it in GitHub Desktop.
Generate self-signed ssl cert in one command - no passphrase
openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.cert -sha256 -days 3650 -nodes -subj '/CN=localhost'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment