Skip to content

Instantly share code, notes, and snippets.

@simonspa
Created March 5, 2015 23:59
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 simonspa/a4251400d083103939ac to your computer and use it in GitHub Desktop.
Save simonspa/a4251400d083103939ac to your computer and use it in GitHub Desktop.
generate openssl self-signed certificate
sudo openssl req -x509 -new -days 1325 -newkey rsa:4096 -nodes -sha256 -out /etc/nginx/ssl/name.sha256.crt -keyout /etc/nginx/ssl/name.sha256.key
* 5 years validity (1325 days)
* SHA256 Signature
* 4096 bit RSA key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment