Skip to content

Instantly share code, notes, and snippets.

@ledangtuanbk
Last active November 22, 2019 07: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 ledangtuanbk/a4d31aa60343762b56c9909bf5790476 to your computer and use it in GitHub Desktop.
Save ledangtuanbk/a4d31aa60343762b56c9909bf5790476 to your computer and use it in GitHub Desktop.
1. view ssl certificate text
openssl x509 -in cerfile.cer -noout -text
2. create private key and cert file
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
3. Generate a self-signed certificate
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt
https://www.sslshopper.com/article-most-common-openssl-commands.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment