Created
January 7, 2016 17:03
-
-
Save wrzlbrmft/0a01404a175d961c7179 to your computer and use it in GitHub Desktop.
Create a self-signed SSL certificate.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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