Update Readme.md for AliCDN

This commit is contained in:
WETOOP 2018-03-30 02:57:37 +08:00 committed by GitHub
parent 5c6fe69f5f
commit af23a387f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,3 +255,41 @@ acme.sh --deploy -d fritzbox.example.com --deploy-hook fritzbox
```sh
acme.sh --deploy -d ftp.example.com --deploy-hook strongswan
```
## 10. Deploy the cert to your AliCDN account
You must specify the aliyun account credentials in order to deploy the certificate, optionally specify the prefix of your domain if you use wildcard in cdn domain, through the following environment variables:
```sh
export DEPLOY_CDN_Ali_Key="AK"
export DEPLOY_CDN_Ali_Secret="SK"
export DEPLOY_CDN_Ali_Prefix=""
```
After the first deployment, these values will be stored in your domain deploy conf. You may now deploy the certificate like this:
```sh
acme.sh --deploy -d example.com --deploy-hook cdn_ali
```
If your cdn domain is cdn.example.com and cert domain is also cdn.example.com, you can leave the prefix empty in deployment:
```sh
export DEPLOY_CDN_Ali_Key="AK"
export DEPLOY_CDN_Ali_Secret="SK"
export DEPLOY_CDN_Ali_Prefix=""
acme.sh --deploy -d example.com --deploy-hook cdn_ali
If your cdn domain is cdn.example.com but cert domain is example.com(subject alternative names: example.com,\*.example.com), you must specify the prefix in deployment:
```sh
export DEPLOY_CDN_Ali_Key="AK"
export DEPLOY_CDN_Ali_Secret="SK"
export DEPLOY_CDN_Ali_Prefix="cdn."
acme.sh --deploy -d example.com --deploy-hook cdn_ali
```
If your cdn domain is \*.example.com (added wildcard domain in AliCDN console) but cert domain is example.com(subject alternative names: example.com,\*.example.com), you must specify the prefix only a dot(.) in deployment:
```sh
export DEPLOY_CDN_Ali_Key="AK"
export DEPLOY_CDN_Ali_Secret="SK"
export DEPLOY_CDN_Ali_Prefix="."
acme.sh --deploy -d example.com --deploy-hook cdn_ali
```