{"id":12038,"date":"2023-12-13T17:08:56","date_gmt":"2023-12-13T09:08:56","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=12038"},"modified":"2023-12-13T17:08:56","modified_gmt":"2023-12-13T09:08:56","slug":"%e5%85%8d%e8%b4%b9ip-ssl%e8%af%81%e4%b9%a6%e7%94%b3%e8%af%b7%e6%9c%89%e9%82%a3%e5%87%a0%e6%ad%a5","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/12038\/","title":{"rendered":"\u514d\u8d39ip ssl\u8bc1\u4e66\u7533\u8bf7\u6709\u90a3\u51e0\u6b65?"},"content":{"rendered":"

SSL\u8bc1\u4e66\u662f\u4e00\u79cd\u7528\u4e8e\u52a0\u5bc6\u4f20\u8f93\u6570\u636e\u7684\u5b89\u5168\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u4e0d\u4f1a\u88ab\u7a83\u53d6\u6216\u7be1\u6539\u3002\u5728\u4e92\u8054\u7f51\u4e0a\uff0cSSL\u8bc1\u4e66\u88ab\u5e7f\u6cdb\u5730\u5e94\u7528\u4e8e\u7f51\u7ad9\u3001\u7535\u5b50\u90ae\u4ef6\u3001FTP\u7b49\u670d\u52a1\u4e2d\uff0c\u4ee5\u786e\u4fdd\u7528\u6237\u7684\u9690\u79c1\u548c\u5b89\u5168\u3002<\/p>\n

\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cSSL\u8bc1\u4e66\u9700\u8981\u8d2d\u4e70\uff0c\u800c\u4e14\u4ef7\u683c\u4e0d\u83f2\uff0c\u5bf9\u4e8e\u4e00\u4e9b\u5c0f\u578b\u7f51\u7ad9\u6216\u4e2a\u4eba\u535a\u5ba2\u6765\u8bf4\uff0c\u8fd9\u53ef\u80fd\u662f\u4e00\u4e2a\u8d1f\u62c5\u3002\u4f46\u662f\uff0c\u73b0\u5728\u6709\u4e00\u4e9b\u514d\u8d39\u7684SSL\u8bc1\u4e66\u53ef\u4ee5\u7533\u8bf7\uff0c\u5176\u4e2d\u6700\u53d7\u6b22\u8fce\u7684\u662fLet’s Encrypt\u3002<\/p>\n

Let’s Encrypt\u662f\u4e00\u5bb6\u975e\u8425\u5229\u7ec4\u7ec7\uff0c\u65e8\u5728\u63a8\u5e7f\u7f51\u7edc\u5b89\u5168\u548c\u52a0\u5bc6\u6280\u672f\u3002\u4ed6\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u514d\u8d39\u7684SSL\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff0c\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u901a\u8fc7\u4ed6\u4eec\u7684\u7f51\u7ad9\u7533\u8bf7\u514d\u8d39\u7684SSL\u8bc1\u4e66\u3002<\/p>\n

\u7533\u8bf7Let’s Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u539f\u7406\u662f\u57fa\u4e8eACME\u534f\u8bae\u3002ACME\uff08\u81ea\u52a8\u8bc1\u4e66\u7ba1\u7406\u73af\u5883\uff09\u662f\u4e00\u79cd\u534f\u8bae\uff0c\u5b83\u5b9a\u4e49\u4e86\u5982\u4f55\u81ea\u52a8\u5316\u5730\u7533\u8bf7\u3001\u9a8c\u8bc1\u548c\u9881\u53d1SSL\u8bc1\u4e66\u3002Let’s Encrypt\u7684\u8bc1\u4e66\u7533\u8bf7\u6d41\u7a0b\u5c31\u662f\u57fa\u4e8e\u8fd9\u4e2a\u534f\u8bae\u5b9e\u73b0\u7684\u3002<\/p>\n

\u5177\u4f53\u6765\u8bf4\uff0c\u7533\u8bf7Let’s Encr<\/p>\n

<\/figure>\n<\/p>\n

ypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n

1. \u5b89\u88c5Certbot\u5de5\u5177<\/p>\n

Certbot\u662fLet’s Encrypt\u5b98\u65b9\u63d0\u4f9b\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7528\u4e8e\u81ea\u52a8\u5316\u5730\u7533\u8bf7\u3001\u9a8c\u8bc1\u548c\u5b89\u88c5SSL\u8bc1\u4e66\u3002\u56e0\u6b64\uff0c\u9996\u5148\u9700\u8981\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5Certbot\u5de5\u5177\u3002<\/p>\n

2. \u7533\u8bf7SSL\u8bc1\u4e66<\/p>\n

\u4f7f\u7528Certbot\u5de5\u5177\u7533\u8bf7\u8bc1\u4e66\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

“`<\/p>\n

sudo certbot certonly –standalone -d example.com -d www.example.com<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0cexample.com\u548cwww.example.com\u662f\u4f60\u7684\u57df\u540d\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u3002\u8fd0\u884c\u547d\u4ee4\u540e\uff0cCertbot\u4f1a\u81ea\u52a8\u7533\u8bf7\u8bc1\u4e66\uff0c\u5e76\u5c06\u8bc1\u4e66\u6587\u4ef6\u4fdd\u5b58\u5728\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n

3. \u9a8c\u8bc1\u57df\u540d\u6240\u6709\u6743<\/p>\n

Let’s Encrypt\u9700\u8981\u9a8c\u8bc1\u4f60\u7684\u57df\u540d\u6240\u6709\u6743\uff0c\u4ee5\u786e\u4fdd\u4f60\u6709\u6743\u7533\u8bf7SSL\u8bc1\u4e66\u3002\u9a8c\u8bc1\u8fc7\u7a0b\u901a\u5e38\u662f\u901a\u8fc7\u5411\u57df\u540d\u7684DNS\u8bb0\u5f55\u6dfb\u52a0\u4e00https\u8bbf\u95ee<\/a>\u4e2aTXT\u8bb0\u5f55\u6765\u5b8c\u6210\u7684\u3002Certbot\u4f1a\u81ea\u52a8\u5b8c\u6210\u8fd9\u4e2a\u8fc7\u7a0b\uff0c\u4f60\u53ea\u9700\u8981\u6309\u7167\u63d0\u793a\u8fdb\u884c\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n

4. \u5b89\u88c5SSL\u8bc1\u4e66<\/p>\n

\u8bc1\u4e66\u7533\u8bf7\u548c\u9a8c\u8bc1\u5b8c\u6210\u540e\uff0cCertbot\u4f1a\u5c06\u8bc1\u4e66\u6587\u4ef6\u4fdd\u5b58\u5728\u670d\u52a1\u5668\u4e0a\u3002\u4f60\u9700\u8981\u5c06\u8bc1\u4e66\u6587\u4ef6\u914d\u7f6e\u5230Web\u670d\u52a1\u5668\u4e2d\uff0c\u4ee5\u542f\u7528SSL\u52a0\u5bc6\u3002\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u53ef\u4ee5\u53c2\u8003Certbot\u7684\u5b98\u65b9\u6587\u6863\u3002<\/p>\n

\u603b\u4f53\u6765\u8bf4\uff0c\u7533\u8bf7Let’s Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u51e0\u4e2a\u547d\u4ee4\u5c31\u53ef\u4ee5\u5b8c\u6210\u3002\u4f46\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cLet’s Encrypt\u7684\u514d\u8d39\u8bc1\u4e66\u53ea\u670990\u5929\u7684\u6709\u6548\u671f\uff0c\u9700\u8981\u5b9a\u671f\u66f4\u65b0\u3002\u53ef\u4ee5\u4f7f\u7528Certbot\u5de5\u5177\u81ea\u52a8\u5316\u5730\u66f4\u65b0\u8bc1\u4e66\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u66f4\u65b0\u8bc1\u4e66\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

SSL\u8bc1\u4e66\u662f\u4e00\u79cd\u7528\u4e8e\u52a0\u5bc6\u4f20\u8f93\u6570\u636e\u7684\u5b89\u5168\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u4e0d\u4f1a\u88ab\u7a83\u53d6\u6216\u7be1\u6539\u3002\u5728\u4e92\u8054\u7f51\u4e0a\uff0cSSL\u8bc1\u4e66\u88ab\u5e7f\u6cdb\u5730\u5e94\u7528\u4e8e\u7f51\u7ad9\u3001\u7535\u5b50\u90ae\u4ef6\u3001FTP\u7b49\u670d\u52a1\u4e2d\uff0c\u4ee5\u786e\u4fdd\u7528\u6237\u7684\u9690\u79c1\u548c\u5b89\u5168\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cSSL<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[17254,17255,52,430,30],"topic":[],"class_list":["post-12038","post","type-post","status-publish","format-standard","hentry","category-sqssl","tag-cahttps","tag-https","tag-52","tag-430","tag-30"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/12038","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\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=12038"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/12038\/revisions"}],"predecessor-version":[{"id":12063,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/12038\/revisions\/12063"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=12038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=12038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=12038"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=12038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}