{"id":1220,"date":"2023-03-30T11:10:38","date_gmt":"2023-03-30T03:10:38","guid":{"rendered":"http:\/\/168858.xyz\/?p=1220"},"modified":"2023-03-30T11:10:38","modified_gmt":"2023-03-30T03:10:38","slug":"https-ssl%e8%af%81%e4%b9%a6%e6%8a%98%e8%85%be","status":"publish","type":"post","link":"https:\/\/acevs.com\/1220\/","title":{"rendered":"https ssl\u8bc1\u4e66\u6298\u817e."},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">certbot<\/h1>\n\n\n\n<p>certbot \u514d\u8d39\u6cdb\u57df\u540d\u8bc1\u4e66\u7684\u751f\u6210\uff0c\u5bb9\u5668\u542f\u52a8\u81ea\u52a8\u751f\u6210\uff0c\u5bb9\u5668\u81ea\u52a8\u8bc1\u4e66\u81ea\u52a8\u7eed\u671f\uff08\u6309\u5b98\u65b9\u8bc1\u4e66\u5373\u5c06\u5230\u671f\u768430\u5929\uff09\u3002<br>\u76ee\u524d\u652f\u6301\u963f\u91cc\u4e91 DNS\u3001\u817e\u8baf\u4e91 DNS\u3001\u534e\u4e3a\u4e91 NDS\u3001GoDaddy\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f7f\u7528\u65b9\u6cd5<\/h3>\n\n\n\n<p><strong>\u547d\u4ee4\u4ee3\u7801<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -itd --name xzxiaoshan-certbot \\\n-v \/opt\/certbot\/logs:\/var\/log\/letsencrypt \\\n-v \/opt\/certbot\/letsencrypt:\/etc\/letsencrypt \\\n-e ALY_TOKEN=XXXXXXXXXX \\\n-e ALY_KEY=XXXXXXXXX -e PDNS=aly \\\n-e CERT_PARAMS=\"--email example@qq.com -d example.com -d *.example.com\" \\\nxzxiaoshan\/xzxiaoshan-certbot:latest \/bin\/bash\n<\/code><\/pre>\n\n\n\n<p><strong>\u53c2\u6570\u8bf4\u660e<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PDNS\u53c2\u6570\uff1a\u963f\u91cc\u4e91<code>aly<\/code>\u3001\u817e\u8baf\u4e91<code>txy<\/code>\u3001\u534e\u4e3a\u4e91<code>hwy<\/code>\u3001GoDaddy&nbsp;<code>godaddy<\/code><\/li><li>ALY_KEY \u548c ALY_TOKEN\uff1a\u963f\u91cc\u4e91&nbsp;<a href=\"https:\/\/help.aliyun.com\/knowledge_detail\/38738.html\">API key \u548c Secrec \u5b98\u65b9\u7533\u8bf7\u6587\u6863<\/a>\u3002<\/li><li>TXY_KEY \u548c TXY_TOKEN\uff1a\u817e\u8baf\u4e91&nbsp;<a href=\"https:\/\/console.cloud.tencent.com\/cam\/capi\">API \u5bc6\u94a5\u5b98\u65b9\u7533\u8bf7\u6587\u6863<\/a>\u3002<\/li><li>HWY_KEY \u548c HWY_TOKEN: \u534e\u4e3a\u4e91&nbsp;<a href=\"https:\/\/support.huaweicloud.com\/devg-apisign\/api-sign-provide.html\">API \u5bc6\u94a5\u5b98\u65b9\u7533\u8bf7\u6587\u6863<\/a>\u3002<\/li><li>GODADDY_KEY \u548c GODADDY_TOKEN\uff1aGoDaddy&nbsp;<a href=\"https:\/\/developer.godaddy.com\/getstarted\">API \u5bc6\u94a5\u5b98\u65b9\u7533\u8bf7\u6587\u6863<\/a>\u3002<\/li><li>\u652f\u6301\u7684\u57df\u540d\u540e\u7f00\u8be6\u89c1\u6587\u4ef6<a href=\"https:\/\/raw.githubusercontent.com\/xzxiaoshan\/certbot\/master\/certbot-au\/domain.ini\">domain.ini<\/a>\u3002\u5982\u679c\u6ca1\u6709\u4f60\u7684\u540e\u7f00\uff0c\u8bf7\u90ae\u4ef6\u8054\u7cfb<code>365384722@qq.com<\/code>\u6dfb\u52a0\u3002 \u4e0a\u9762\u547d\u4ee4\u901a\u7528\u4e8eLinux\uff0c\u5982\u679c\u4f60\u662f\u7fa4\u6656\u76f4\u63a5\u901a\u8fc7\u7fa4\u6656\u754c\u9762\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u548c\u5377\u6302\u8f7d\u5373\u53ef\uff0c\u5176\u4ed6\u8bbe\u5907\u540c\u7406\u3002<\/li><\/ul>\n\n\n\n<p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5bb9\u5668\u9664\u6b64\u521b\u5efa\u8fd0\u884c\u65f6\uff0ccertbot\u4f1a\u6784\u5efa\u8fd0\u884c\u73af\u5883\uff0c\u8fd9\u4e2a\u9700\u4f30\u8ba1\u9700\u8981\u51e0\u5206\u949f\u65f6\u95f4\uff0c\u9700\u8981\u7b49\u5f85\u4e00\u4e0b\u3002<\/li><li>\u914d\u7f6e\u8fd0\u884c\u73af\u5883\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u79d1\u5b66\u4e0a\u7f51\uff0c\u90a3\u4e48\u53ef\u80fd\u4f1a\u56e0\u4e3a\u7f51\u7edc\u4e0d\u597d\u800c\u51fa\u73b0\u9519\u8bef\uff08\u53ea\u8981\u4f60\u518d\u65e5\u5fd7\u4e2d\u641c\u7d22\u5b58\u5728<code>timeout<\/code>\u5c31\u53ef\u4ee5\u786e\u5b9a\uff09\uff0c\u7136\u540e\u4f60\u53ea\u9700\u8981\u91cd\u542f\u5bb9\u5668\u5373\u53ef\uff0c\u76f4\u5230\u6ca1\u6709\u7c7b\u4f3c\u7684\u7f51\u7edc\u95ee\u9898\u9519\u8bef\u3002<\/li><li>\u65e5\u5fd7\u5728<code>certbot.log<\/code>\u6587\u4ef6\u4e2d\u53ef\u80fd\u770b\u5230\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u9644\uff1a\u7fa4\u6656\u8bc1\u4e66\u81ea\u52a8\u540c\u6b65<\/h3>\n\n\n\n<p>\u7fa4\u6656\u300b\u63a7\u5236\u9762\u677f\u300b\u4efb\u52a1\u8ba1\u5212\u300b\u65b0\u589e\u81ea\u5b9a\u4e49\u7528\u6237\u811a\u672c\u300b\u4efb\u52a1\u8bbe\u7f6e\u300b\u811a\u672c\u5185\u5bb9\u586b\u5199<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/volume1\/docker\/certbot\/letsencrypt\/synology\/syncSynologyCert.sh\n<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d\u524d\u9762\u4e00\u6bb5<code>\/volume1\/docker\/certbot\/letsencrypt<\/code>\u662f\u4f60\u7fa4\u6656\u914d\u7f6e\u5bb9\u5668\u65f6\u6302\u8f7d\u7684\u5377\u7684\u76ee\u5f55\u7684\u5b9e\u9645\u8def\u5f84\uff08\u53f3\u952e\u6587\u4ef6\u5939\u5c5e\u6027\u67e5\u770b\uff09<br>\u811a\u672c\u8bbe\u7f6e\u6bcf\u5929\u6267\u884c\u4e00\u6b21\u5373\u53ef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u81ea\u52a8\u5347\u7ea7certbot<\/h3>\n\n\n\n<p>\u5b98\u65b9\u547d\u4ee4certbot-auto\u6bcf\u6b21\u6267\u884c\u5c06\u59cb\u7ec8\u5c1d\u8bd5\u4ece\u6700\u65b0\u7248\u672c\u4e2d\u83b7\u53d6\u81ea\u8eab\u7684\u6700\u65b0\u7248\u672c\u3002<br>\u5982\u679c\u5e0c\u671b\u5c06\u5176\u9501\u5b9a\u5230\u7279\u5b9a\u7248\u672c\u5e76\u4e14\u4e0d\u63a5\u6536\u81ea\u52a8\u66f4\u65b0\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u540e\u52a0 --no-self-upgrade \u5373\u53ef\u3002<br>\u5373\uff1a<code>certbot-auto renew --no-self-upgrade<\/code>\u3002<br>\u5bf9\u4e8e\u672c\u6e90\u7801\u4e2d\uff0c\u5bf9\u5e94\u4fee\u6539&nbsp;<code>shell\/renewCmd.sh<\/code>&nbsp;\u811a\u672c\u5185\u5bb9\uff0c\u6dfb\u52a0&nbsp;<code>--no-self-upgrade<\/code>&nbsp;\u53c2\u6570\u540e\u81ea\u884c\u6784\u5efa\u955c\u50cf\u5373\u53ef\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u611f\u8c22<a href=\"https:\/\/github.com\/ywdblog\/certbot-letencrypt-wildcardcertificates-alydns-au\">certbot-au<\/a>\u4ee3\u7801\u7684\u4f5c\u8005\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u6587\u4ef6:<a href=\"https:\/\/laosu.ml\/2020\/07\/31\/%E5%85%8D%E8%B4%B9%E7%9A%84%E6%B3%9B%E5%9F%9F%E5%90%8Dhttps%E8%AF%81%E4%B9%A6%E8%87%AA%E5%8A%A8%E7%BB%AD%E6%9C%9F\/?highlight=nginx\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/laosu.ml\/2020\/07\/31\/%E5%85%8D%E8%B4%B9%E7%9A%84%E6%B3%9B%E5%9F%9F%E5%90%8Dhttps%E8%AF%81%E4%B9%A6%E8%87%AA%E5%8A%A8%E7%BB%AD%E6%9C%9F\/?highlight=nginx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>certbot certbot \u514d\u8d39&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6,167],"tags":[476,469],"class_list":["post-1220","post","type-post","status-publish","format-standard","hentry","category-nas","category-wordpress","category-167","tag-certbot","tag-ssl"],"_links":{"self":[{"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/posts\/1220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/comments?post=1220"}],"version-history":[{"count":1,"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/posts\/1220\/revisions"}],"predecessor-version":[{"id":1222,"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/posts\/1220\/revisions\/1222"}],"wp:attachment":[{"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/media?parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/categories?post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/acevs.com\/wp-json\/wp\/v2\/tags?post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}