Skip to content

Instantly share code, notes, and snippets.

@thomasjbradley
Created January 21, 2013 02:36
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 thomasjbradley/4583259 to your computer and use it in GitHub Desktop.
Save thomasjbradley/4583259 to your computer and use it in GitHub Desktop.
The four steps to making a self-signed SSL certificate
#!/usr/bin/env bash
openssl genrsa -des3 -out server.key 1024
#!/usr/bin/env bash
openssl req -new -key server.key -out server.csr
#!/usr/bin/env bash
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
#!/usr/bin/env bash
openssl rsa -in server.key -out server.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment