Skip to content

Instantly share code, notes, and snippets.

@ishansharma
Created January 30, 2017 10:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishansharma/df98ea0f2c0b35b151f41ff75a98acde to your computer and use it in GitHub Desktop.
Save ishansharma/df98ea0f2c0b35b151f41ff75a98acde to your computer and use it in GitHub Desktop.
Generate SSL Certificate and Key on macOS
openssl genrsa -out example.com.key 2048
openssl req -new -x509 -key example.com.key -out example.com.cert -days 3650 -subj /CN=example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment