Skip to content

Instantly share code, notes, and snippets.

@roscius
Created June 1, 2014 22:45
Show Gist options
  • Select an option

  • Save roscius/0ff65eb53d0f596522ff to your computer and use it in GitHub Desktop.

Select an option

Save roscius/0ff65eb53d0f596522ff to your computer and use it in GitHub Desktop.
Self Signed SSL Cert
# Create the Server Key
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl rsa -passin pass:x -in server.pass.key -out server.key
rm server.pass.key
# Create the CSR
openssl req -new -key server.key -out server.csr
# Sign the certificate
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment