Skip to content

Instantly share code, notes, and snippets.

@zthxxx
Created December 30, 2019 10:12
Show Gist options
  • Save zthxxx/b37cddcb17395e395ad6b430a81edd61 to your computer and use it in GitHub Desktop.
Save zthxxx/b37cddcb17395e395ad6b430a81edd61 to your computer and use it in GitHub Desktop.
# curl https://get.acme.sh | sh
# https://dash.cloudflare.com/profile/api-tokens
export CF_Token="xxxxxx"
# https://dash.cloudflare.com/<account_id>
export CF_Account_ID="xxxxxx"
acme.sh --issue --dns dns_cf -d zthxxx.me -d '*.zthxxx.me'
mkdir -p /etc/nginx/ssl/zthxxx.me
acme.sh --installcert -d zthxxx.me \
--fullchain-file /etc/nginx/ssl/zthxxx.me/fullchain.cer \
--key-file /etc/nginx/ssl/zthxxx.me/privkey.key \
--reloadcmd "service nginx force-reload"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment