Created
February 20, 2016 14:50
-
-
Save lsongdev/7178cb5cacd12075df45 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
echo "This script generates the certificate and private key for the https webadmin" | |
echo "Note that the generated certificate is self-signed, and therefore not trusted by browsers" | |
echo "Note that this script requires openssl to be installed and in PATH" | |
echo "" | |
echo "When OpenSSL asks you for Common Name, you need to enter the fully qualified domain name of the server, that is, e. g. gallery.xoft.cz" | |
echo "" | |
openssl req -x509 -newkey rsa:2048 -keyout httpskey.pem -out httpscert.crt -days 3650 -nodes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment