Created
December 30, 2019 10:12
-
-
Save zthxxx/b37cddcb17395e395ad6b430a81edd61 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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