{"id":517989,"date":"2021-07-18T20:46:49","date_gmt":"2021-07-18T12:46:49","guid":{"rendered":"http:\/\/4563.org\/?p=517989"},"modified":"2021-07-18T20:46:49","modified_gmt":"2021-07-18T12:46:49","slug":"acme%e5%8d%8e%e4%b8%ba%e4%ba%91huaweicloud-dns%e7%9a%84%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=517989","title":{"rendered":"ACME+\u534e\u4e3a\u4e91HuaweiCloud DNS\u7684\u6559\u7a0b"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u55f7\u55f7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>ACME+\u534e\u4e3a\u4e91HuaweiCloud DNS\u7684\u6559\u7a0b<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u55f7\u55f7 \u4e8e 2021-7-18 20:49 \u7f16\u8f91 <\/p>\n<p> ACME\u6587\u6863\u94fe\u63a5\uff1ahttps:\/\/github.com\/acmesh-official\/acme.sh\/wiki\/dnsapi#123-use-huaweicloud-api<\/p>\n<p>  \u6709\u4e00\u70b9\u70b9\u95ee\u9898\uff0c\u5c31\u662f\u9879\u76eeID(ProjectID)\u4e0d\u77e5\u9053\u5728\u54ea\u627e(ACME\u6587\u6863\u91cc\u7684\u5df2\u7ecf\u5931\u6548\u4e86,\u94fe\u63a5\u4e0d\u5bf9\u4e86)<\/p>\n<p>  \u4e0b\u9762\u662fACME\u6587\u6863\u7684\u5185\u5bb9\u622a\u53d6<br \/>  123.\u4f7f\u7528\u534e\u4e3a\u4e91API<br \/>  \u5c06\u60a8\u7684\u51ed\u636e\u5bfc\u51fa\u4e3a\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<p>  ProjectID\u53ef\u4ee5\u5728\u8fd9\u91cc\u627e\u5230 \u8c8c\u4f3c\u53ef\u4ee5\u81ea\u52a8\u83b7\u53d6project ID\uff0c\u4f46\u662f\u8fd9\u4e2adnsapi\u8fd8\u6ca1\u6709\u5b9e\u73b0\u3002<\/p>\n<p>  export HUAWEICLOUD_Username=&lt;Your Username&gt; # Usually hwxxxxxx<br \/>  export HUAWEICLOUD_Password=&lt;Your Password&gt;<br \/>  export HUAWEICLOUD_Password=&lt;A Project ID&gt; <br \/>  \u9881\u53d1\u8bc1\u4e66\uff1a<\/p>\n<p>  .\/acme.sh &#8211;issue &#8211;dns dns_huaweicloud -d example.com -d www.example.com<br \/>  \u8981\u9881\u53d1\u901a\u914d\u7b26\u8bc1\u4e66\uff1a<\/p>\n<p>  .\/acme.sh &#8211;issue &#8211;dns dns_huaweicloud -d example.com -d *.example.com<\/p>\n<p>  \u9700\u89813\u4e2a\u53d8\u91cfHUAWEICLOUD_Username\u3001HUAWEICLOUD_Password\u3001HUAWEICLOUD_Password<\/p>\n<p>  \u524d\u4e24\u4e2a\u6ca1\u4ec0\u4e48\u7591\u95ee\uff0c\u5c31\u662f\u534e\u4e3a\u4e91\u7684\u767b\u5f55\u8d26\u53f7\u3001\u767b\u5f55\u5bc6\u7801<\/p>\n<p>  \u7b2c\u4e09\u4e2a\u9879\u76eeID\u7684\u8bdd<\/p>\n<p>  \u6d4f\u89c8\u5668\u5148\u767b\u5f55\u534e\u4e3a\u4e91\u8d26\u53f7<\/p>\n<p>  1. \u6253\u5f00\uff1ahttps:\/\/console.huaweicloud.com\/<\/p>\n<p>  \u7136\u540e\u94fe\u63a5\u4f1a\u81ea\u52a8\u52a0\u4e0a\u51e0\u4e2a\u53c2\u6570\uff0c\u6bd4\u5982\u6211\u7684https:\/\/console.huaweicloud.com\/console\/?region=cn-north-4#\/home<\/p>\n<p>  \u4e0d\u4e00\u5b9a\u5c31\u662fregion=cn-north-4\uff0c\u4e5f\u53ef\u80fd\u662fregion=cn-north-1\uff0c\u6216\u5176\u4ed6\u3002\u4ee5\u4f60\u81ea\u5df1\u7684\u4e3a\u51c6<\/p>\n<p>  http:\/\/inews.gtimg.com\/newsapp_ls\/0\/13781022942\/0<\/p>\n<p>  2. \u6253\u5f00\u6211\u7684\u51ed\u8bc1\uff08\u540e\u53f0\u63a7\u5236\u53f0\u53f3\u4e0a\u89d2\uff09<\/p>\n<p>  \u53ef\u4ee5\u8bd5\u8bd5\u76f4\u63a5\u6253\u5f00\u94fe\u63a5(\u4e0d\u884c\u5c31\u6309\u56fe\u64cd\u4f5c\u6253\u5f00)\uff1ahttps:\/\/console.huaweicloud.com\/iam\/#\/mine\/apiCredential<\/p>\n<p>  \u7136\u540e\u5c31\u80fd\u770b\u5230\u9879\u76eeID\u4e86(32\u4f4d\u82f1\u6587\u548c\u6570\u5b57\u7ec4\u6210\u7684)\uff0c\u6ce8\u610f\u5339\u914d\u533a\u57df(\u94fe\u63a5\u4e0a\u6709)\uff0c\u4e5f\u5c31\u662fregion=cn-north-4\u540e\u9762\u8fd9\u4e2acn-north-4(\u4ee5\u4f60\u81ea\u5df1\u7684\u4e3a\u51c6)\uff0c\u6211\u6d4b\u8bd5\u4e86\u4e00\u4e0b\uff0c\u7528\u533a\u57df\u4e0d\u5339\u914d\u7684\u9879\u76eeID\u8c8c\u4f3c\u4e5f\u884c,\u4f46\u662f\u6700\u597d\u76f4\u63a5\u7528\u5bf9\u5e94\u7684\u9879\u76eeID,\u514d\u5f97\u6709\u5947\u602a\u7684\u95ee\u9898<\/p>\n<p>  http:\/\/inews.gtimg.com\/newsapp_ls\/0\/13781033188\/0<\/p>\n<p>  http:\/\/inews.gtimg.com\/newsapp_ls\/0\/13781037014\/0<\/p>\n<p>  \u7136\u540e\u7528\u6cd5\u5c31\u662f\u6587\u6863\u4e0a\u6709\u7684<\/p>\n<p>  \u5b89\u88c5:<br \/>  curlhttps:\/\/get.acme.sh | sh -s email=my@example.com<br \/>  \u9881\u53d1\u8bc1\u4e66:<br \/>  export HUAWEICLOUD_Username=wodezhanghao<br \/>  export HUAWEICLOUD_Password=wodedenglumima<br \/>  export HUAWEICLOUD_Password=qianmiankandaodexiangmuid<br \/>  ~\/.acme.sh\/acme.sh &#8211;issue &#8211;dns dns_huaweicloud -d example.com -d *.example.com<\/p>\n<p>  \t\t\t\t\t<strong>\u5468\u6da6\u53d1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u697c\u4e3b\u5206\u4eab \t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u55f7\u55f7 \u5927\u4f6c\u6709\u8bdd\u8bf4 : ACME+\u534e&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517989"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=517989"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517989\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=517989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=517989"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=517989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}