{"id":5023,"date":"2020-01-24T15:58:03","date_gmt":"2020-01-24T07:58:03","guid":{"rendered":"https:\/\/www.hmouse.tk\/?p=5023"},"modified":"2020-01-24T15:58:03","modified_gmt":"2020-01-24T07:58:03","slug":"%e5%85%8d%e8%b4%b9%e7%9a%84ssl%e8%af%81%e4%b9%a6","status":"publish","type":"post","link":"https:\/\/www.hmouse.cn\/?p=5023","title":{"rendered":"\u514d\u8d39\u7684ssl\u8bc1\u4e66"},"content":{"rendered":"<p>\u6709\u4e2a\u514d\u8d39\u7684https\u8bc1\u4e66\u4f9b\u5e94\u5546(Let\u2019s Encrypt)\u3002\u7f51\u4e0a\u5176\u5b9e\u6709\u4e2aacme.sh\u53ef\u4ee5\u81ea\u52a8\u7533\u8bf7\uff0c\u7eed\u7b7e\u8bc1\u4e66\uff0c\u4ee5\u524d\u7533\u8bf7\u8fc7www.hmouse.cn\uff0c\u6700\u8fd1\u7531\u4e8e\u9700\u6c42\u9700\u8981\u7533\u8bf7\u4e2a\u65b0\u7684\u57df\u540d\uff0c\u53cd\u800c\u4e0d\u4f1a\u5f04\u4e86\u3002\u6240\u4ee5\u5199\u4e2a\u6587\u6863\u8bb0\u5f55\u4e0b\u3002<\/p>\n<p>\u5176\u5b9eacme.sh\u7684\u9a8c\u8bc1\u6bd4\u8f83\u9ebb\u70e6\uff0c\u63a8\u8350\u662f\u7528CloudFlare_API\u5c31\u53ef\u4ee5\u81ea\u52a8\u7eed\u7b7e\u3002\u4e0d\u9700\u8981\u7f51\u7ad9\u9a8c\u8bc1\u548cdns\u9a8c\u8bc1\u3002<\/p>\n<p>\u5176\u5b9e\u4e5f\u53ef\u4ee5\u770b\u770b\u6211\u7684www.hmouse.cn\u7684account.conf\u00a0 \u548c\u5df2\u7ecf\u6709\u7684 \u914d\u7f6e\uff0c\u5c31\u77e5\u9053\u4e86\u3002<\/p>\n<p>\u63a8\u8350url\uff1ahttps:\/\/becoder.org\/acme-sh-cloudflare-free-wildcard-ssl-lets-encrypt\/<\/p>\n<p>\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>export CF_Key=&#8221;Your_CloudFlare_API_Key&#8221;<br \/>\nexport CF_Email=&#8221;Your_CloudFlare_Account@example.com&#8221;<\/p>\n<p>\/root\/.acme.sh\/acme.sh &#8211;issue -d &#8220;YourDomainName.com&#8221; -d &#8220;*.YourDomainName.com&#8221; &#8211;dns dns_cf<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u4e2a\u514d\u8d39\u7684https\u8bc1\u4e66\u4f9b\u5e94\u5546(Let\u2019s Encrypt)\u3002\u7f51\u4e0a\u5176\u5b9e\u6709\u4e2aacme.sh\u53ef\u4ee5\u81ea\u52a8\u7533\u8bf7\uff0c\u7eed\u7b7e\u8bc1\u4e66\uff0c\u4ee5\u524d\u7533\u8bf7\u8fc7www.hmouse.cn\uff0c\u6700\u8fd1\u7531\u4e8e\u9700\u6c42\u9700\u8981\u7533\u8bf7\u4e2a\u65b0\u7684\u57df\u540d\uff0c\u53cd\u800c\u4e0d\u4f1a\u5f04\u4e86\u3002\u6240\u4ee5\u5199\u4e2a\u6587\u6863\u8bb0\u5f55\u4e0b\u3002<\/p>\n<p>\u5176\u5b9eacme.sh\u7684\u9a8c\u8bc1\u6bd4\u8f83\u9ebb\u70e6\uff0c\u63a8\u8350\u662f\u7528CloudFlare_API\u5c31\u53ef\u4ee5\u81ea\u52a8\u7eed\u7b7e\u3002\u4e0d\u9700\u8981\u7f51\u7ad9\u9a8c\u8bc1\u548cdns\u9a8c\u8bc1\u3002<\/p>\n<p>\u5176\u5b9e\u4e5f\u53ef\u4ee5\u770b\u770b\u6211\u7684www.hmouse.cn\u7684account.conf\u00a0 \u548c\u5df2\u7ecf\u6709\u7684 \u914d\u7f6e\uff0c\u5c31\u77e5\u9053\u4e86\u3002<\/p>\n<p>\u63a8\u8350url\uff1ahttps:\/\/becoder.org\/acme-sh-cloudflare-free-wildcard-ssl-lets-encrypt\/<\/p>\n<p>\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>export CF_Key=&#8221;Your_CloudFlare_API_Key&#8221;<br \/>\nexport CF_Email=&#8221;Your_CloudFlare_Account@example.com&#8221;<\/p>\n<p>\/root\/.acme.sh\/acme.sh &#8211;issue -d &#8220;YourDomainName.com&#8221; -d &#8220;*.YourDomainName.com&#8221; &#8211;dns dns_cf<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[263,262,261],"class_list":["post-5023","post","type-post","status-publish","format-standard","hentry","category-5","tag-acme-sh","tag-https","tag-ssl","category-5-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/5023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5023"}],"version-history":[{"count":1,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/5023\/revisions"}],"predecessor-version":[{"id":5024,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/5023\/revisions\/5024"}],"wp:attachment":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}