Skip to content

Instantly share code, notes, and snippets.

@Bonno
Created July 6, 2015 08:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bonno/48803029ea88605f2d49 to your computer and use it in GitHub Desktop.
Save Bonno/48803029ea88605f2d49 to your computer and use it in GitHub Desktop.
generate x509 SHA256 hash self-signed certificate using OpenSSL
openssl req -x509 -nodes -sha256 -days 365 -newkey rsa:2048 -keyout example.com.crt -out example.com.crt
# Check cerificate
openssl x509 -noout -text -in example.com.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment