Skip to content

Instantly share code, notes, and snippets.

@aniljava
Last active September 13, 2018 15:18
Show Gist options
  • Save aniljava/2dfca33457150a4022b7008f4c5f5bfa to your computer and use it in GitHub Desktop.
Save aniljava/2dfca33457150a4022b7008f4c5f5bfa to your computer and use it in GitHub Desktop.
letsencrypt automate script
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