Skip to content

Instantly share code, notes, and snippets.

@sixertoy
Created February 7, 2020 12:21
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 sixertoy/9da76ec11f2b2d101bd85d0135632d71 to your computer and use it in GitHub Desktop.
Save sixertoy/9da76ec11f2b2d101bd85d0135632d71 to your computer and use it in GitHub Desktop.
Self Signed Certificate
which openssl
brew install openssl
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl rsa -passin pass:x -in server.pass.key -out server.key
rm server.pass.key
openssl req -new -key server.key -out server.csr
# ...
# Country Name (2 letter code) [AU]:FR
# State or Province Name (full name) [Some-State]:Occitanie
# ...
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment