Skip to content

Instantly share code, notes, and snippets.

@dklassen
Created July 15, 2016 17:37
Show Gist options
  • Save dklassen/e6fc11ea11a75113b0a7913f6ef7f299 to your computer and use it in GitHub Desktop.
Save dklassen/e6fc11ea11a75113b0a7913f6ef7f299 to your computer and use it in GitHub Desktop.
openssl genrsa 1024 > ~/pk.pem
yes "" | openssl req \
-new \
-x509 \
-nodes \
-sha1 \
-days 3650 \
-key ~/pk.pem \
-outform PEM > ~/cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment