Skip to content

Instantly share code, notes, and snippets.

@ketanghumatkar
Created July 16, 2018 14:17
Show Gist options
  • Save ketanghumatkar/5695a94bf3482234f4a1704451914640 to your computer and use it in GitHub Desktop.
Save ketanghumatkar/5695a94bf3482234f4a1704451914640 to your computer and use it in GitHub Desktop.
Generate Self Certified SSL Certificate

Generate Self Certified SSL Certificate using openssl

  1. openssl
  2. genrsa -des3 -out treeni.key 1024
  3. req -new -key treeni.key -sha256 -out treeni.csr
  4. x509 -req -days 365 -in treeni.csr -signkey treeni.key -sha256 -out treeni.crt
  5. x509 -in treeni.crt -out treeni.pem -outform PEM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment