Skip to content

Instantly share code, notes, and snippets.

@Akira-Hayasaka
Created July 21, 2020 01:58
Show Gist options
  • Select an option

  • Save Akira-Hayasaka/0bd4a7163f6c554b503e33eb19b0fd4e to your computer and use it in GitHub Desktop.

Select an option

Save Akira-Hayasaka/0bd4a7163f6c554b503e33eb19b0fd4e to your computer and use it in GitHub Desktop.
Create a Self-Signed SSL Certificate
openssl genrsa -des3 -out server.key 2048
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
cp server.key server.key.secure
openssl rsa -in server.key.secure -out server.key
openssl dhparam -out dh512.pem 512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment