{"id":407,"date":"2020-03-02T22:58:29","date_gmt":"2020-03-02T14:58:29","guid":{"rendered":"http:\/\/4801ef175323400eb001a4ed78b2a57c"},"modified":"2020-04-29T16:50:02","modified_gmt":"2020-04-29T08:50:02","slug":"4801ef175323400eb001a4ed78b2a57c","status":"publish","type":"post","link":"https:\/\/www.netnewpower.net\/?p=407","title":{"rendered":"Windows\u670d\u52a1\u5668\u4e0aLet&#8217;s Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5"},"content":{"rendered":"<p>\u4e4b\u524d\u5199\u4e86\u4e00\u7bc7<strong>\u300aCloudflare\u89e3\u6790\u57df\u540d\u548c\u914d\u7f6eSSL\u5b9e\u73b0\u5168\u7ad9HTTPS\u7684\u6559\u7a0b\u300b<\/strong>\uff0c\u7528\u4e86\u4e4b\u540e\u53d1\u73b0\u56fd\u5916\u7ebf\u8def\u7f51\u901f\u8fd8\u4e0d\u9519\uff0c\u4f46\u662f\u5982\u679c\u662f\u505a\u4e2a\u4e2d\u6587\u7ad9\u7ed9\u56fd\u5185\u7528\u6237\u8bbf\u95ee\uff0c\u8fd9\u4e2a\u7f51\u901f\u5c31\u6709\u70b9\u4e0d\u7ed9\u529b\u4e86\uff0c\u6bd5\u7adf\u7528\u8fd9\u4e2aCLOUDFLARE\u7684\u8bdd\u5f97DNS\u5207\u6362\u5230\u4ed6\u4eec\u5bb6\u7684\u3002<\/p>\n<p>\u5176\u5b9e\u6211\u4eec\u5e38\u7528\u7684DNSPOD\u89e3\u6790\u5bf9\u56fd\u5185\u56fd\u5916\u7684\u8bbf\u95ee\u901f\u5ea6\u90fd\u5f88\u4e0d\u9519\uff0c\u6240\u4ee5\u5c31\u60f3\u7740\u80fd\u4e0d\u80fd\u53e6\u8f9f\u8e4a\u5f84\uff0c\u4e0d\u6539\u53d8DNS\u7684\u60c5\u51b5\u4e0b\u627e\u4e00\u5bb6\u514d\u8d39\u7684SSL\u8bc1\u4e66\u673a\u6784\u6765\u5b9e\u73b0\u7ad9\u70b9\u8f6c\u5411HTTPS\uff0cLet&#8217;s Encrypt\u7684SSL\u8bc1\u4e66\u662f\u514d\u8d39\u7684\uff0c\u800c\u4e14\u662f\u53ef\u4ee5\u90e8\u7f72\u5230LINUX\u3001WINDOWS\u7b49\u5404\u79cd\u670d\u52a1\u5668\u4e0a\uff0c\u56e0\u4e3a\u5c31\u6210\u4e3a\u4e86\u9996\u9009\uff0c\u7f51\u7edc\u4e0a\u641c\u641c\u641c\uff0c\u53d1\u73b0\u8fd9\u4e2a\u8bc1\u4e66\u7684\u7533\u8bf7\u5ba2\u6237\u7aef\u975e\u5e38\u4e30\u5bcc\uff0c\u6709\u4e9b\u662f\u548cPLESK\u3001\u5b9d\u5854\u7b49\u9762\u677f\u96c6\u6210\uff0c\u6709\u4e9b\u4e48\u662f\u514d\u8d39\u7248\u672c\u6709\u7ad9\u70b9\u6570\u91cf\u9650\u5236\uff0c\u6700\u7ec8\u627e\u5230\u4e86\u8fd9\u4e2aWIN-ACME\u65b9\u6848\uff0c\u540c\u65f6\u6ee1\u8db3\u4e86\uff1aWINDOWS\u670d\u52a1\u5668+\u4e0d\u53d8\u66f4DNS+\u64cd\u4f5c\u65b9\u4fbf+\u514d\u8d39\u3002<\/p>\n<p><strong>Let&#8217;s Encrypt \u7b80\u4ecb<\/strong><\/p>\n<p>Let&#8217;s Encrypt\u662f\u514d\u8d39\u3001\u5f00\u653e\u548c\u81ea\u52a8\u5316\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff0c\u7531\u975e\u76c8\u5229\u7ec4\u7ec7\u4e92\u8054\u7f51\u5b89\u5168\u7814\u7a76\u5c0f\u7ec4\uff08ISRG\uff09\u8fd0\u8425\uff0c\u76ee\u524d\u5df2\u7ecf\u4e3a1.8\u4ebf\u4e2a\u7f51\u7ad9\u63d0\u4f9bTLS\u8bc1\u4e66\u3002\u7f51\u7ad9\u5730\u5740\u662f\uff1ahttps:\/\/letsencrypt.org\/<\/p>\n<p>\u672c\u7bc7\u8bb2\u8ff0Windows\u670d\u52a1\u5668\u4e0aLet&#8217;s Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5\uff0c\u672c\u4f8b\u5177\u4f53\u4f7f\u7528\u7684\u662f<a href=\"https:\/\/xurl.ink\/WJ\" target=\"_blank\" rel=\"noopener noreferrer\">\u817e\u8baf\u4e91<\/a>\u7684Windows 2012\u670d\u52a1\u5668\uff0c\u5176\u4ed6Windows\u7cfb\u5217\u670d\u52a1\u5668\u60c5\u51b5\u57fa\u672c\u4e00\u6837\uff0c\u4e0b\u9762\u662f\u8be6\u7ec6\u6559\u7a0b\uff1a<\/p>\n<p>\u4e00\u3001\u4e0b\u8f7dWIN-ACME\u5de5\u5177<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/github.com\/Lone-Coder\/letsencrypt-win-simple\/releases<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 1\" border=\"0\" \/><\/p>\n<p>\u4e0b\u8f7d\u5230Windows\u670d\u52a1\u5668\u4e0a\u540e\u89e3\u538b\u7f29\uff0c\u6253\u5f00\u4e3b\u7a0b\u5e8f<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_2.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 2\" border=\"0\" \/><\/p>\n<p>\u4e8c\u3001\u7533\u8bf7\u548c\u90e8\u7f72HTTPS SSL\u8bc1\u4e66\u6b65\u9aa4<\/p>\n<p>1\u3001\u9009\u62e9N\uff0cCREATE NEW CERTIFICATE\uff08SIMPLE FOR IIS\uff09\uff0c\u56de\u8f66\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_3.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 3\" border=\"0\" \/><\/p>\n<p>2\u3001\u8f6f\u4ef6\u81ea\u52a8\u5217\u51fa\u6765IIS\u91cc\u6240\u6709\u8fd0\u884c\u72b6\u6001\u7684\u7ad9\u70b9\uff0c\u9009\u62e9\u9700\u8981\u90e8\u7f72SSL\u7684\u7ad9\u70b9\uff0c\u6211\u8fd9\u91cc\u662f\u9009\u4e8611\u53f7\u7ad9\u70b9\uff0c\u56de\u8f66\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_4.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 4\" border=\"0\" \/><\/p>\n<p>3\u3001\u8f6f\u4ef6\u63a2\u6d4b\u5230\u8be5\u7ad9\u70b9\u67092\u6761\u57df\u540d\u7ed1\u5b9a\uff0c\u8fd9\u91cc\u90093\uff1aPICK *ALL* BINDINGS\uff0c\u56de\u8f66\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_5.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 5\" border=\"0\" \/><\/p>\n<p>4\u3001\u9009\u62e9\u5176\u4e2d\u4e00\u4e2a\u6700\u4e3b\u8981\u7684\u57df\u540d\uff0c\u6211\u4e00\u822c\u559c\u6b22\u4e0d\u5e26WWW\uff08\u5143\u82b3\uff0c\u4f60\u81ea\u5df1\u770b\u7740\u529e\uff01\uff09\uff0c\u90091\uff0c\u56de\u8f66\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_6.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 6\" border=\"0\" \/><\/p>\n<p>5\u3001\u662f\u5426\u7ee7\u7eed\uff0c\u7ee7\u7eed\u8f93\u5165y\uff0c\u56de\u8f66\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_7.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 7\" border=\"0\" \/><\/p>\n<p>6\u3001\u8fd9\u4e2a\u6bd4\u8f83\u91cd\u8981\uff0c\u8f93\u5165\u4e00\u4e2a\u5e38\u7528\u90ae\u7bb1\uff0c\u8bc1\u4e66\u53d1\u884c\u65b9\u4f1a\u5728SSL\u8bc1\u4e66\u5230\u671f\u4e4b\u524d\u7ed9\u4f60\u53d1\u90ae\u4ef6\u63d0\u9192\uff0c\u4e0d\u8981\u4e71\u586b\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_8.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 8\" border=\"0\" \/><\/p>\n<p>7\u3001\u81ea\u52a8\u751f\u6210\u4e86\u4e00\u4efd\u7528\u6237\u534f\u8bae\uff0c\u76f4\u63a5y\uff0c\u56de\u8f66\u3002\u4f1a\u81ea\u52a8\u6d4f\u89c8\u5668\u53bb\u6253\u5f00\u8fd9\u4e2aPDF\u7ed9\u4f60\u770b\u770b\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_9.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 9\" border=\"0\" \/><\/p>\n<p>8\u3001\u95ee\u4f60\u662f\u5426\u540c\u610f\u6b64\u534f\u8bae\uff0cy\uff0c\u56de\u8f66\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_10.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 10\" border=\"0\" \/><\/p>\n<p>9\u3001\u7533\u8bf7\u548c\u90e8\u5206\u8be6\u7ec6\u8fd0\u884c\u8fc7\u7a0b\uff0c\u770b\u5230\u8fd9\u4e2a\u5c31\u8bf4\u660e\u6210\u529f\u4e86\uff0c\u6709\u663e\u793a\u8bc1\u4e66\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u6700\u540e\u8f93\u5165Q\uff0c\u56de\u8f66\u9000\u51fa\u3002<\/p>\n<p>\u7531\u4e8eLet&#8217;s Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u53ea\u670990\u5929\u7684\u6709\u6548\u671f\uff0c\u8fc7\u671f\u9700\u8981\u66f4\u65b0\uff0c\u8be5\u7a0b\u5e8f\u4f1a\u751f\u6210\u4e00\u4e2a\u8ba1\u5212\u4efb\u52a1\uff0c\u6bcf\u5929\u4e0a\u53489\u70b9\u949f\u8fd0\u884c\u68c0\u67e5\u8fc7\u671f\u7684\u8bc1\u4e66\u5e76\u66f4\u65b0\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_11.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 11\" border=\"0\" \/><\/p>\n<p>\u751f\u6210\u7684\u8ba1\u5212\u4efb\u52a1\u7684\u6267\u884c\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u4f4d\u7f6e\u5c31\u662fWIN-ACME\u8f6f\u4ef6\u7684\u8def\u5f84\uff0c\u672c\u4f8b\u7684\u4f4d\u7f6e\u662f\uff1aC:\\win-acme.v2.1.5.742.x64.pluggable\\wacs.exe\uff0c\u8bf7\u5230\u63a7\u5236\u9762\u677f=&gt;\u7ba1\u7406\u5de5\u5177=&gt;\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u4e2d\u67e5\u770b\u76f8\u5e94\u4efb\u52a1\u5c5e\u6027\uff0c\u786e\u8ba4\u542f\u52a8\u7a0b\u5e8f\u7684\u8def\u5f84\u5bf9\u4e0d\u5bf9\uff0c\u5982\u679c\u79fb\u52a8\u5230\u5176\u5b83\u5730\u65b9\u4e86\u4e5f\u9700\u8981\u8fdb\u884c\u76f8\u5e94\u4fee\u6539\uff0c\u5426\u5219\u4f1a\u6267\u884c\u5931\u8d25\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-414\" src=\"http:\/\/netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-1.jpg\" alt=\"\" width=\"599\" height=\"381\" srcset=\"https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-1.jpg 599w, https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-1-300x191.jpg 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-415\" src=\"http:\/\/netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-2.jpg\" alt=\"\" width=\"542\" height=\"528\" srcset=\"https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-2.jpg 542w, https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-2-300x292.jpg 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-416\" src=\"http:\/\/netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-3.jpg\" alt=\"\" width=\"815\" height=\"564\" srcset=\"https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-3.jpg 815w, https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-3-300x208.jpg 300w, https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-3-768x531.jpg 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-417\" src=\"http:\/\/netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-4.jpg\" alt=\"\" width=\"900\" height=\"570\" srcset=\"https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-4.jpg 901w, https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-4-300x190.jpg 300w, https:\/\/www.netnewpower.net\/wp-content\/uploads\/2020\/03\/20200302234726-ktc_11-4-768x487.jpg 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>10\u3001\u6253\u5f00IIS\uff0c\u627e\u5230\u8be5\u7ad9\u7684SSL\u8bbe\u7f6e\uff0c\u786e\u4fdd\u4e0d\u52fe\u9009SSL\uff0c\u5ba2\u6237\u8bc1\u4e66\u9009\u62e9\u5ffd\u7565\uff0c\u6211\u4eec\u628aHTTP\u5230HTTPS\u7684\u5f3a\u5236\u8f6c\u6362\u4ea4\u7ed9HTACCESS\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_12.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 12\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_13.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 13\" border=\"0\" \/><\/p>\n<p>11\u3001HTACCESS\u6dfb\u52a0\u5982\u4e0b\u8bed\u53e5\uff0c\u5b9e\u73b0HTTP\u5230HTTPS\u7684301\u8df3\u8f6c\uff0c\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p><span style=\"background-color: #ff9900;\">RewriteCond %{SERVER_PORT} !^443$<br \/>\nRewriteRule (.*) https:\/\/%{SERVER_NAME}\/$1 [R=301,L]<\/span><\/p>\n<p><img decoding=\"async\" src=\"\/images\/20200302234726-ktc_14.jpg\" alt=\"Windows\u670d\u52a1\u5668\u4e0aLet's Encrypt\u514d\u8d39SSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u90e8\u7f72\u65b9\u6cd5 - 14\" border=\"0\" \/><\/p>\n<p>\u5982\u6b64\uff0c\u4fbf\u5b9e\u73b0\u4e86WINDOWS\u670d\u52a1\u5668\u4e0a\u7533\u8bf7\u548c\u90e8\u7f72\u514d\u8d39SSL\u8bc1\u4e66\uff0c\u5b9e\u73b0\u5168\u7ad9HTTPS\u3002\u4e0d\u9700\u8981\u6539DNS\uff0c\u800c\u4e14\u514d\u8d39\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u5199\u4e86\u4e00\u7bc7\u300aCloudflare\u89e3\u6790\u57df\u540d\u548c\u914d\u7f6eSSL\u5b9e\u73b0\u5168\u7ad9HTTPS\u7684\u6559\u7a0b\u300b\uff0c\u7528\u4e86\u4e4b\u540e\u53d1\u73b0\u56fd\u5916\u7ebf<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[32,46,17,10],"class_list":["post-407","post","type-post","status-publish","format-standard","hentry","category-25","tag-https","tag-SSL","tag-windows-2012","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=\/wp\/v2\/posts\/407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=407"}],"version-history":[{"count":7,"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=\/wp\/v2\/posts\/407\/revisions"}],"predecessor-version":[{"id":519,"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=\/wp\/v2\/posts\/407\/revisions\/519"}],"wp:attachment":[{"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netnewpower.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}