Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Last active January 27, 2018 20:08
Show Gist options
  • Save franciscocpg/badf6764a09dad743df578d2e4c9060c to your computer and use it in GitHub Desktop.
Save franciscocpg/badf6764a09dad743df578d2e4c9060c to your computer and use it in GitHub Desktop.
Self signed certificate
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"
@franciscocpg
Copy link
Author

franciscocpg commented Aug 12, 2016

For remote install use

bash <(curl -s https://gist.githubusercontent.com/franciscocpg/badf6764a09dad743df578d2e4c9060c/raw/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment