Last active
January 27, 2018 20:08
-
-
Save franciscocpg/badf6764a09dad743df578d2e4c9060c to your computer and use it in GitHub Desktop.
Self signed certificate
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
set -e | |
while [[ -z "$domain" ]]; do | |
echo -n "Domain:" | |
read domain | |
done | |
openssl genrsa -des3 -passout pass:x -out "$domain.pass.key" 2048 | |
openssl rsa -passin pass:x -in "$domain.pass.key" -out "$domain.key" | |
rm "$domain.pass.key" | |
openssl req -new -key "$domain.key" -out "$domain.crt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For remote install use
bash <(curl -s https://gist.githubusercontent.com/franciscocpg/badf6764a09dad743df578d2e4c9060c/raw/)