Skip to content

Instantly share code, notes, and snippets.

@johananl
Created July 17, 2019 14:55
Show Gist options
  • Save johananl/82b3cd093f1a0ce60f98c24e9b45dbc1 to your computer and use it in GitHub Desktop.
Save johananl/82b3cd093f1a0ce60f98c24e9b45dbc1 to your computer and use it in GitHub Desktop.
Generate self-signed TLS certificate
openssl req -x509 -newkey rsa:4096 -keyout mykey.key -out mycert.pem -days 365 -nodes -subj '/CN=localhost'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment