Skip to content

Instantly share code, notes, and snippets.

@aniljava
Last active September 13, 2018 15:18
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