Skip to content

Instantly share code, notes, and snippets.

@miguelfrde
Last active March 29, 2020 19:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miguelfrde/a49748927c21013ef0e7 to your computer and use it in GitHub Desktop.
Save miguelfrde/a49748927c21013ef0e7 to your computer and use it in GitHub Desktop.
Self signed SSL
openssl genrsa -des3 -out ssl.key 2048
openssl req -new -key ssl.key -out ssl.csr
cp ssl.key ssl.key.orig
openssl rsa -in ssl.key.orig -out ssl.key
openssl x509 -req -days 1095 -in ssl.csr -signkey ssl.key -out ssl.crt
cat ssl.crt ssl.key > ssl.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment