华为云域名DNS解析使用ACME.SH 免费签发LETSENCRYPT免费SSL证书

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
扫码关注微信公众号,更多精彩
点赞0打赏 分享
九月 25

本站历史上的今天

    "吼吼~~~,往年的今天站长不知道跑哪里偷懒去了~~~"
评论 抢沙发

    暂无评论内容