Skip to content

Instantly share code, notes, and snippets.

@wrzlbrmft
Created January 7, 2016 17:03
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 wrzlbrmft/0a01404a175d961c7179 to your computer and use it in GitHub Desktop.
Save wrzlbrmft/0a01404a175d961c7179 to your computer and use it in GitHub Desktop.
Create a self-signed SSL certificate.
# see https://wiki.archlinux.org/index.php/Apache_HTTP_Server#TLS.2FSSL
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -out server.key
chmod 400 server.key
openssl req -new -sha256 -key server.key -out server.csr
openssl x509 -req -days 1095 -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