{"id":2335,"date":"2022-11-08T23:47:40","date_gmt":"2022-11-08T15:47:40","guid":{"rendered":"https:\/\/maofun.com\/?p=2335"},"modified":"2022-11-08T23:47:40","modified_gmt":"2022-11-08T15:47:40","slug":"%e4%bd%bf%e7%94%a8acme-sh%e7%94%b3%e8%af%b7google-ssl%e8%af%81%e4%b9%a6%ef%bc%88%e6%89%8b%e5%8a%a8dns%e8%a7%a3%e6%9e%90%ef%bc%89","status":"publish","type":"post","link":"https:\/\/maofun.com\/2335.html","title":{"rendered":"\u4f7f\u7528Acme.sh\u7533\u8bf7Google SSL\u8bc1\u4e66\uff08\u624b\u52a8DNS\u89e3\u6790\uff09"},"content":{"rendered":"<p>\u624b\u52a8DNS\u89e3\u6790\u7533\u8bf7\uff0c\u81ea\u52a8DNS\u89e3\u6790\u5728\u7b2c7\u6b65\u5f00\u59cb\u6539\u6210\u81ea\u52a8\u7684\u5c31\u884c\u3002<\/p>\n<p>1.\u767b\u5f55google\u8d26\u53f7\u540e\uff0c\u70b9\u51fb\u94fe\u63a5\uff1a<a href=\"https:\/\/console.cloud.google.com\/apis\/library\/publicca.googleapis.com?project=temporal-genius-1919810\" target=\"_blank\" rel=\"noopener\">https:\/\/console.cloud.google.com\/apis\/library\/publicca.googleapis.com?project=temporal-genius-1919810<\/a>\n<img loading=\"lazy\" decoding=\"async\" id=\"aimg_ZlXiz\" class=\"zoom\" src=\"\/wp-content\/uploads\/replace\/17b4729650d18d945cf4c06e542c881a.png\" width=\"600\" height=\"294\" border=\"0\" \/ alt=\"\u4f7f\u7528Acme.sh\u7533\u8bf7Google SSL\u8bc1\u4e66\uff08\u624b\u52a8DNS\u89e3\u6790\uff09 - \u7b2c1\u5f20\u56fe\u7247\" title=\"\u4f7f\u7528Acme.sh\u7533\u8bf7Google SSL\u8bc1\u4e66\uff08\u624b\u52a8DNS\u89e3\u6790\uff09 - \u7b2c1\u5f20\u56fe\u7247 | \u732b\u996d\" >\n\u70b9\u51fb\u542f\u7528\u3002<\/p>\n<p>2.\u7b49\u5f85\u542f\u7528\u540e\uff0c\u5355\u51fb\u53f3\u4e0a\u89d2\u7684\u201c\u6fc0\u6d3b Cloud Shell\u201d\uff0c\u6253\u5f00 Google Cloud Shell\u3002\n<img loading=\"lazy\" decoding=\"async\" id=\"aimg_R0IfA\" class=\"zoom\" src=\"\/wp-content\/uploads\/replace\/a50a33cd53fefb6a3236f2a1d13ddcc1.png\" width=\"600\" height=\"279\" border=\"0\" \/ alt=\"\u4f7f\u7528Acme.sh\u7533\u8bf7Google SSL\u8bc1\u4e66\uff08\u624b\u52a8DNS\u89e3\u6790\uff09 - \u7b2c2\u5f20\u56fe\u7247\" title=\"\u4f7f\u7528Acme.sh\u7533\u8bf7Google SSL\u8bc1\u4e66\uff08\u624b\u52a8DNS\u89e3\u6790\uff09 - \u7b2c2\u5f20\u56fe\u7247 | \u732b\u996d\" ><\/p>\n<p>3.\u5728Cloud Shell\u8f93\u5165<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"]gcloud beta publicca external-account-keys create[\/prism]<\/pre>\n<p>\u7a0d\u540e\u4f1a\u8fd4\u56dekeyid\u548cb64mackey<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"]Created an external account key\r\n[b64MacKey: xxxxxxxxxxxxxxxxxxx\r\nkeyId: xxxxxxxxxxxx][\/prism]<\/pre>\n<p>&nbsp;<\/p>\n<p>4.\u5b89\u88c5Acme.sh\uff08\u5df2\u5b89\u88c5\u7684\u8df3\u8fc7\u8fd9\u6b65\uff09<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"]curl https:\/\/get.acme.sh | sh -s email=\u4f60\u7684\u90ae\u7bb1[\/prism]<\/pre>\n<p>\u628aAcme.sh\u5b89\u88c5\u5728\u6839\u76ee\u5f55\u4e0b\uff0c\u5b89\u88c5\u5728\u54ea\u90fd\u884c\u3002<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"]~\/.acme.sh\/[\/prism]<\/pre>\n<p>&nbsp;<\/p>\n<p>5.Acme.sh\u9ed8\u8ba4\u751f\u6210Let\u2019s Encrypt R3\u8bc1\u4e66\uff0c\u6211\u4eec\u9700\u8981\u4fee\u6539\u4e00\u4e0b\u8ba9\u5b83\u9ed8\u8ba4\u751f\u6210google\u8bc1\u4e66\u3002<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"].\/acme.sh --set-default-ca --server google[\/prism]<\/pre>\n<p>&nbsp;<\/p>\n<p>6.\u83b7\u53d6\u7533\u8bf7google\u8bc1\u4e66\u7684\u8d44\u683c<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"].\/acme.sh --register-account -m \u521a\u521a\u7533\u8bf7key\u7684\u8c37\u6b4c\u8d26\u53f7\u90ae\u7bb1[url=home.php?mod=space&amp;uid=32917]@Google.com[\/url] --server google \r\n--eab-kid xxxxxx \r\n--eab-hmac-key xxxxxxxx[\/prism]<\/pre>\n<p>&nbsp;<\/p>\n<p>7.\u7533\u8bf7google\u8bc1\u4e66\uff08\u624b\u52a8DNS\u89e3\u6790\uff0c\u81ea\u52a8\u7684\u53c2\u8003\u5b98\u65b9\u6559\u7a0b\uff09\u63a8\u8350\u7533\u8bf7ECC\u8bc1\u4e66<\/p>\n<p>\u7533\u8bf7\u5e38\u89c4\u8bc1\u4e66<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"].\/acme.sh --issue --dns -d \u57df\u540d -d \u57df\u540d \r\n--yes-I-know-dns-manual-mode-enough-go-ahead-please[\/prism]<\/pre>\n<p>&nbsp;<\/p>\n<p>\u4f1a\u5f39\u51fa\u4e24\u4e2aTXT\u8bb0\u5f55\uff0c\u89e3\u6790\u5b83\u5c31\u884c\n\u7a0d\u7b49\u4e00\u4f1a\uff0c\u91cd\u65b0\u6fc0\u6d3b\u7533\u8bf7\u8ba2\u5355\u3002<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"].\/acme.sh --server google --renew -d \u57df\u540d -d \u57df\u540d \r\n--yes-I-know-dns-manual-mode-enough-go-ahead-please[\/prism]<\/pre>\n<p>&nbsp;<\/p>\n<p>\u7533\u8bf7ECC\u8bc1\u4e66<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"].\/acme.sh -k ec-256 --issue -d \u57df\u540d -d \u57df\u540d \r\n--yes-I-know-dns-manual-mode-enough-go-ahead-please[\/prism]<\/pre>\n<p>&nbsp;<\/p>\n<p>\u4f1a\u5f39\u51fa\u4e24\u4e2aTXT\u8bb0\u5f55\uff0c\u89e3\u6790\u5b83\u5c31\u884c\n\u89e3\u6790\u5b8c\u6210\u540e<\/p>\n<pre class=\"fix-back-pre\">[prism lang=\"\"].\/acme.sh -k ec-256 --server google --renew -d \u57df\u540d -d \u57df\u540d \r\n--yes-I-know-dns-manual-mode-enough-go-ahead-please[\/prism]<\/pre>\n<div id=\"gtx-trans\" style=\"position: absolute; left: -32px; top: 796.016px;\">\n<div class=\"gtx-trans-icon\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u624b\u52a8DNS\u89e3\u6790\u7533\u8bf7\uff0c\u81ea\u52a8DNS\u89e3\u6790\u5728\u7b2c7\u6b65\u5f00\u59cb\u6539\u6210\u81ea\u52a8\u7684\u5c31\u884c\u3002 1.\u767b\u5f55google\u8d26\u53f7\u540e\uff0c\u70b9\u51fb\u94fe\u63a5\uff1ahttps:\/\/console.cloud.google.com\/apis\/library\/publicca.googleapis.com?project=temporal-genius-1919810 \u70b9\u51fb\u542f\u7528\u3002 2.\u7b49\u5f85\u542f\u7528\u540e\uff0c\u5355\u51fb\u53f3\u4e0a\u89d2\u7684\u201c\u6fc0\u6d3b Cloud Shell\u201d\uff0c\u6253\u5f00 Google Cloud Shell\u3002 3.\u5728Cloud Shell\u8f93\u5165 [prism lang=&#8221;&#8221;]gcloud beta publicca external-account-keys create[\/pris&#8230;&#8230;<span class=\"read-more\"> <a href=\"https:\/\/maofun.com\/2335.html\"><\/p>\n<p>\u7ee7\u7eed\u9605\u8bfb&raquo;&raquo;&raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[349,491,32,77,284,492,409,496,78,43,371],"_links":{"self":[{"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/posts\/2335"}],"collection":[{"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/comments?post=2335"}],"version-history":[{"count":0,"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/posts\/2335\/revisions"}],"wp:attachment":[{"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/media?parent=2335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/categories?post=2335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/maofun.com\/wp-json\/wp\/v2\/tags?post=2335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}