Last active
September 13, 2018 15:18
-
-
Save aniljava/2dfca33457150a4022b7008f4c5f5bfa to your computer and use it in GitHub Desktop.
letsencrypt automate script
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
DOMAIN=$1 | |
wget 'https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh' -O acme.sh | |
chmod +x acme.sh | |
./acme.sh --issue -d $DOMAIN --standalone -d www.$DOMAIN --home ./ | |
cp $DOMAIN/$DOMAIN.cer ./crt.crt | |
cp $DOMAIN/$DOMAIN.key ./key.key | |
cp $DOMAIN/fullchain.cer ./chain.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment