Skip to content

Instantly share code, notes, and snippets.

@boynoiz
Forked from passuf/gist:892e3d49b96d857ec26d
Created November 20, 2015 08:06
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 boynoiz/8c926fec3f4f2616b30b to your computer and use it in GitHub Desktop.
Save boynoiz/8c926fec3f4f2616b30b to your computer and use it in GitHub Desktop.
OpenSSL

SSL Cheat Sheet

Create self signed certificate:

openssl req -new -x509 -sha256 -newkey rsa:2048 -nodes -keyout server.key -days 365 -out server.crt

Create new key:

openssl genrsa -out server.key 2048

Create new key and a certificate sign request:

req -new -sha256 -newkey rsa:2048 -nodes -keyout server.key -out server.csr

Or use an existing key to create a certificate sign request:

openssl req -new -sha256 -key server.key -out server.csr

Verify the certificate:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment