Skip to content

Instantly share code, notes, and snippets.

@joseche
Last active October 27, 2015 22:51
Show Gist options
  • Select an option

  • Save joseche/45cd8eeee6ab23cccca3 to your computer and use it in GitHub Desktop.

Select an option

Save joseche/45cd8eeee6ab23cccca3 to your computer and use it in GitHub Desktop.
Generate TLS self-signed certs
# generate self signed certificate:
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -subj /CN=localhost -keyout cert.key -out cert.crt
# show contents of certficiate
openssl x509 -in cert.crt -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment