SSL\u8bc1\u4e66\u662f\u4e00\u79cd\u7528\u4e8e\u52a0\u5bc6\u7f51\u7edc\u901a\u4fe1\u7684\u5b89\u5168\u534f\u8bae\uff0c\u5b83\u80fd\u591f\u4fdd\u62a4\u7f51\u7edc\u901a\u4fe1\u8fc7\u7a0b\u4e2d\u4f20\u8f93\u7684\u6570\u636e\u4e0d\u88ab\u7a83\u53d6\u3001\u7be1\u6539\u6216\u5192\u5145\u3002\u5728\u7f51\u7ad9\u5efa\u8bbe\u8fc7\u7a0b\u4e2d\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u7528\u6237\u6570\u636e\u7684\u5b89\u5168\u6027\uff0c\u9700\u8981\u7533\u8bf7SSL\u8bc1\u4e66\u3002\u4f20\u7edf\u4e0a\uff0cSSL\u8bc1\u4e66\u7684\u7533\u8bf7\u9700\u8981\u652f\u4ed8\u4e00\u5b9a\u7684\u8d39\u7528\uff0c\u4f46\u73b0\u5728\u6709\u4e00\u79cd\u514d\u8d39\u7684\u65b9\u5f0f\u6765\u7533\u8bf7SSL\u8bc1\u4e66\uff0c\u5373\u4f7f\u7528Let’s Encrypt\u8bc1\u4e66\u3002<\/p>\n
Let’s Encrypt\u8bc1\u4e66\u662f\u4e00\u4e2a\u7531\u975e\u8425\u5229\u7ec4\u7ec7Let’s Encrypt\u63d0\u4f9b\u7684\u514d\u8d39SSL\u8bc1\u4e66\uff0c\u5b83\u7684\u76ee\u7684\u662f\u8ba9\u6240\u6709\u7f51\u7ad9\u90fd\u80fd\u4f7f\u7528HTTPS\u534f\u8bae\uff0c\u4ece\u800c\u4fdd\u62a4\u7528\u6237\u6570\u636e\u7684\u5b89\u5168\u3002\u4e0b\u9762\u6211\u4eec\u6765\u4ecb\u7ecd\u4e00\u4e0b\u5982\u4f55\u514d\u8d39\u7533\u8bf7Let’s Encrypt\u8bc1\u4e66\u6765\u8ba4\u8bc1\u57df\u540d\u3002<\/p>\n
1. \u5b89\u88c5Certbot\u5de5\u5177<\/p>\n
Certbot\u662f\u4e00\u4e2a\u7528\u4e8e\u81ea\u52a8\u5316SSL\u8bc1\u4e66\u7533\u8bf7\u548c\u90e8\u7f72\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u4e0eLet’s Encrypt\u8bc1\u4e66\u8fdb\u884c\u4ea4\u4e92\u3002\u5728\u7533\u8bf7Let’s Encrypt\u8bc1\u4e66\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5Certbot\u5de5\u5177\u3002Certbot\u652f\u6301\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff0c\u53ef\u4ee5\u5728\u5176\u5b98\u7f51\u4e0a\u67e5\u770b\u76f8\u5e94\u7684\u5b89\u88c5\u6559\u7a0b\u3002<\/p>\n
2. \u7533\u8bf7\u8bc1\u4e66<\/p>\n
\u5b89\u88c5Certbot\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528Certbot\u6765\u7533\u8bf7Let’s Encrypt\u8bc1\u4e66\u4e86\u3002\u5728\u7533\u8bf7\u8bc1\u4e66\u4e4b\u524d\uff0c\u9700\u8981\u5148\u786e\u8ba4\u57df\u540d\u662f\u5426\u6b63\u786e\u89e3\u6790\u5230\u4e86\u670d\u52a1\u5668\u4e0a\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u6765\u7533\u8bf7\u8bc1\u4e66\uff1a<\/p>\n
“`<\/p>\n
sudo certbot certonly –manual –preferred-challenges=dns -d example.com<\/p>\n
“`<\/p>\n
\u5176\u4e2d\uff0cexample.com\u662f\u9700\u8981\u7533\u8bf7\u8bc1\u4e66\u7684\u57df\u540d\uff0c–manual\u53c2\u6570\u8868\u793a\u624b\u52a8\u9a8c\u8bc1\u57df\u540d\uff0c–preferred-challenges=dns\u53c2\u6570\u8868\u793a\u4f7f\u7528DNS\u9a8c\u8bc1\u65b9\u5f0f\u3002<\/p>\n
3. \u9a8c\u8bc1\u57df\u540d<\/p>\n
\u63a5\u4e0b\u6765\uff0cCertbot\u4f1a\u63d0\u793a\u4f60\u9700\u8981\u6dfb\u52a0\u4e00\u4e2aTXT\u8bb0\u5f55\u5230DNS\u4e2d\uff0c\u4ee5\u9a8c\u8bc1\u57df\u540d\u7684\u6240\u6709\u6743\u3002\u5728DNS\u7ba1\u7406\u9762\u677f\u4e2d\u6dfb\u52a0TXT\u8bb0\u5f55\uff0c\u8bb0\u5f55\u7684\u503c\u4e3aCertbot\u63d0\u4f9b\u7684\u503c\u3002\u6dfb\u52a0\u5b8cTXT\u4e3aip\u7533\u8bf7ssl<\/a>\u8bb0\u5f55\u540e\uff0c\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\uff0c\u8ba9DNS\u8bb0\u5f55\u751f\u6548\u3002<\/p>\n
4. \u5b8c\u6210\u9a8c\u8bc1<\/p>\n
\u662f\u9700\u8981\u6ce8\u610f\u8bc1\u4e66\u7684\u6709\u6548\u671f\u53ea\u670990\u5929\uff0c\u9700\u8981\u5b9a\u671f\u66f4\u65b0\u8bc1\u4e66\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
SSL\u8bc1\u4e66\u662f\u4e00\u79cd\u7528\u4e8e\u52a0\u5bc6\u7f51\u7edc\u901a\u4fe1\u7684\u5b89\u5168\u534f\u8bae\uff0c\u5b83\u80fd\u591f\u4fdd\u62a4\u7f51\u7edc\u901a\u4fe1\u8fc7\u7a0b\u4e2d\u4f20\u8f93\u7684\u6570\u636e\u4e0d\u88ab\u7a83\u53d6\u3001\u7be1\u6539\u6216\u5192\u5145\u3002\u5728\u7f51\u7ad9\u5efa\u8bbe\u8fc7\u7a0b\u4e2d\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u7528\u6237\u6570\u636e\u7684\u5b89\u5168\u6027\uff0c\u9700\u8981\u7533\u8bf7SSL\u8bc1\u4e66\u3002\u4f20\u7edf\u4e0a\uff0cSSL\u8bc1\u4e66\u7684\u7533\u8bf7\u9700\u8981\u652f\u4ed8\u4e00<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5931,217,25,5932,30],"topic":[],"class_list":{"0":"post-2893","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-sqssl","7":"tag-https","8":"tag-217","9":"tag-25","11":"tag-30"},"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/2893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=2893"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/2893\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=2893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=2893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=2893"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=2893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}