diff --git a/deployhooks.md b/deployhooks.md index e16ada8..b9cdbfb 100644 --- a/deployhooks.md +++ b/deployhooks.md @@ -994,16 +994,19 @@ export DEPLOY_KEYHELP_ENFORCE_HTTPS="1" acme.sh --deploy -d example.com --deploy-hook keyhelp ``` -## 33. Deploy your certificate to Alibaba Cloud CDN (Aliyun) +## 33. Deploy your certificate to CDN or DCDN of Alibaba Cloud (Aliyun) -使用 acme.sh 部署到阿里云 CDN 之前,需要先创建[访问密钥](https://help.aliyun.com/zh/ram/user-guide/create-an-accesskey-pair),并赋予[相应权限](https://help.aliyun.com/zh/cdn/developer-reference/api-cdn-2018-05-10-setcdndomainsslcertificate#api-detail-31)。 +使用 acme.sh 部署到阿里云 CDN / DCDN 之前,需要先创建[访问密钥](https://help.aliyun.com/zh/ram/user-guide/create-an-accesskey-pair),并赋予相应权限: [CDN](https://help.aliyun.com/zh/cdn/developer-reference/api-cdn-2018-05-10-setcdndomainsslcertificate#api-detail-31) / [DCDN](https://help.aliyun.com/zh/dcdn/developer-reference/api-dcdn-2018-01-15-setdcdndomainsslcertificate#api-detail-31)。 ```sh $ export Ali_Key="foo" $ export Ali_Secret="bar" ``` -该访问密钥,与 acme.sh 中的其它阿里云相关服务共享(例如 DNS API 中的 `dns_ali` 功能)。如果已经在其它地方设置过 `Ali_Key` 和 `Ali_Secret` 变量,会自动复用。 +该访问密钥,与 acme.sh 中的其它阿里云服务共享(例如 DNS API 中的 `dns_ali` 功能)。如果已经在其它地方设置过 `Ali_Key` 和 `Ali_Secret` 变量,会自动复用。 + +> [!TIP] +> ** 以下内容以 CDN 为例,DCDN 用户需要修改变量名中的 `CDN` 为 `DCDN`,并将 deploy-hook 从 `ali_cdn` 换成 `ali_dcdn` 。** 完成准备工作之后,您就可以通过下面的命令开始部署 SSL 证书到阿里云 CDN : @@ -1011,7 +1014,7 @@ $ export Ali_Secret="bar" $ acme.sh --deploy -d example.com --deploy-hook ali_cdn ``` -假如您使用多域名或泛域名证书,您可能需要设置 `DEPLOY_ALI_CDN_DOMAIN` 变量,指定想要部署的域名(请注意泛域名前面的点): +假如您使用多域名或泛域名证书,您可能需要设置 `DEPLOY_ALI_CDN_DOMAIN` 或 ``DEPLOY_ALI_DCDN_DOMAIN` 变量,指定想要部署的域名(请注意泛域名前面的点): ```sh $ export DEPLOY_ALI_CDN_DOMAIN=".example.com" @@ -1027,7 +1030,7 @@ $ acme.sh --deploy -d example.com --deploy-hook ali_cdn ### English version -You should [create an AccessKey pair](https://www.alibabacloud.com/help/en/ram/user-guide/create-an-accesskey-pair) and [give it the proper permissions](https://www.alibabacloud.com/help/en/cdn/developer-reference/api-cdn-2018-05-10-setcdndomainsslcertificate#api-detail-31) before deploying your certificate. +You should [create an AccessKey pair](https://www.alibabacloud.com/help/en/ram/user-guide/create-an-accesskey-pair) and set the proper permissions for [CDN](https://www.alibabacloud.com/help/en/cdn/developer-reference/api-cdn-2018-05-10-setcdndomainsslcertificate#api-detail-31) or [DCDN](https://www.alibabacloud.com/help/en/dcdn/developer-reference/api-dcdn-2018-01-15-setdcdndomainsslcertificate#api-detail-31) before deploying your certificate. ```sh $ export Ali_Key="foo" @@ -1036,6 +1039,9 @@ $ export Ali_Secret="bar" Notice that, this access key pair will be shared with other Alibaba Cloud features in acme.sh (eg. `dns_ali` in DNS API). +> [!TIP] +> ** This document uses CDN as a reference. For DCDN users, it is necessary to modify the variable names by replacing `CDN` with `DCDN`, and use the `ali_dcdn` deploy-hook instead of ali_cdn. ** + After having the preparation, you can deploy certificate by following command: ```sh