Skip to content

Instantly share code, notes, and snippets.

@asaph
Created June 2, 2015 19:59
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 asaph/40cf09418832c099001f to your computer and use it in GitHub Desktop.
Save asaph/40cf09418832c099001f to your computer and use it in GitHub Desktop.
Generate Self-Signed Cert in PEM format using OpenSSL
#!/bin/sh
openssl req -new -newkey rsa:2048 -nodes -days 365 -x509 -subj "/C=/ST=/L=/O=/CN=localhost" -keyout privkey.pem -out cacert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment