acme.sh 现已将华为云解析 API 加入 DNS 自动验证体系,华为云域名DNS解析已经可以使用acme.sh 免费签发letsencrypt免费SSL证书。方法如下:
Use HuaweiCloud API 设置环境变量:
ProjectID can be found at here It seems that project ID can be retrieved automatically, but this dnsapi does not implement it yet.
export HUAWEICLOUD_Username=<Your Username> # Usually hwxxxxxx
export HUAWEICLOUD_Password=<Your Password>
export HUAWEICLOUD_ProjectID=<A Project ID>
签发证书:
#To issue a cert: 单个域名
./acme.sh --issue --dns dns_huaweicloud -d example.com -d www.example.com
#To issue a wildcard cert:泛域名
./acme.sh --issue --dns dns_huaweicloud -d example.com -d *.example.com
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容