{"id":3399,"date":"2023-04-14T10:34:05","date_gmt":"2023-04-14T02:34:05","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/https\/3399.html"},"modified":"2023-04-14T10:34:05","modified_gmt":"2023-04-14T02:34:05","slug":"%e5%a6%82%e4%bd%95%e7%94%b3%e8%af%b7ssl-2","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/https\/3399.html","title":{"rendered":"\u5982\u4f55\u7533\u8bf7ssl"},"content":{"rendered":"<p>\u5982\u4f55\u7533\u8bf7ssl<\/p>\n<p><\/p>\n<p>SSL\uff08Secure Socket Layer\uff09\u662f\u4e00\u79cd\u5b89\u5168\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u548cWeb\u670d\u52a1\u5668\u4e4b\u95f4\u5efa\u7acb\u52a0\u5bc6\u7684\u901a\u4fe1\u901a\u9053\uff0c\u4fdd\u62a4\u6570\u636e\u7684\u5b89\u5168\u548c\u5b8c\u6574\u6027\u3002SSL\u8bc1\u4e66\u662f\u4e00\u79cd\u6570\u5b57\u8bc1\u4e66\uff0c\u7528\u4e8e\u9a8c\u8bc1\u7f51\u7ad9\u7684\u8eab\u4efd\u548c\u52a0\u5bc6\u7f51\u7ad9\u7684\u901a\u4fe1\u5185\u5bb9\u3002\u5982\u679c\u4f60\u60f3\u8ba9\u4f60\u7684\u7f51\u7ad9\u4f7f\u7528https\u534f\u8bae\uff0c\u4f60\u9700\u8981\u7533\u8bf7\u5e76\u5b89\u88c5SSL\u8bc1\u4e66\u3002\u4ee5\u4e0b\u662f\u7533\u8bf7SSL\u8bc1\u4e66\u7684\u4e00\u822c\u6b65\u9aa4\uff1a<\/p>\n<p><\/p>\n<p>1. \u751f\u6210CSR\u548cKEY\u6587\u4ef6\u3002CSR\uff08Certificate Signing Request\uff09\u662f\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42\u6587\u4ef6\uff0c\u7528\u4e8e\u5411\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff08<a href=\"https:\/\/www.yimenssl.cn\/ssl-shenqing-598.html\">ssl\u8bc1\u4e66\u5728\u7ebf\u7533\u8bf7\u70ed\u95e8\u535a\u5ba2\u5217\u8868<\/a>CA\uff09\u7533\u8bf7\u8bc1\u4e66\u3002KEY\u662f\u79c1\u94a5\u6587\u4ef6\uff0c\u7528\u4e8e\u914d\u7f6eSSL\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528openssl\u5de5\u5177\u5728\u672c\u5730\u751f\u6210\u8fd9\u4e24\u4e2a\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a<\/p>\n<p><\/p>\n<p>bash<br \/>openssl genrsa 2048 &gt; <a href=\"private-key.pem\">private-key.pem<\/a> # \u751f\u6210\u79c1\u94a5\u6587\u4ef6<br \/>openssl req -new -key <a href=\"private-key.pem\">private-key.pem<\/a> -out <a href=\"csr.pem\">csr.pem<\/a> # \u751f\u6210CSR\u6587\u4ef6<br \/>&#8220;`<\/p>\n<p>\u751f\u6210CSR\u6587\u4ef6\u65f6\uff0c\u4f60\u9700\u8981\u8f93\u5165\u4e00\u4e9b\u8bc1\u4e66\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u56fd\u5bb6\u3001\u7ec4\u7ec7\u3001\u516c\u7528\u540d\u7b49\u3002\u516c\u7528\u540d\u5c31\u662f\u4f60\u8981\u7533\u8bf7\u7684\u670d\u52a1\u5668\u540d\uff08\u4f8b\u5982\uff1awww.yourdomain.com\uff09\u3002<\/p>\n<p>2. \u8d2d\u4e70\u6216\u7533\u8bf7\u514d\u8d39\u7684SSL\u8bc1\u4e66\u3002\u4f60\u53ef\u4ee5\u4ece\u4e0d\u540c\u7684CA\u8d2d\u4e70\u6216\u7533\u8bf7\u514d\u8d39\u7684SSL\u8bc1\u4e66\uff0c\u4f8b\u5982\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u3001ZeroSSL\u7b49\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4f60\u9700\u8981\u5c06\u521a\u624d\u751f\u6210\u7684CSR\u6587\u4ef6\u4e0a\u4f20\u6216\u7c98\u8d34\u5230CA\u7684\u7f51\u7ad9\uff0c\u5e76\u586b\u5199\u5fc5\u8981\u4fe1\u606f\uff0c\u9009\u62e9\u7533\u8bf7\u65f6\u957f\u7b49\u3002\u5982\u679c\u4f60\u662f\u65b0\u7533\u8bf7\u8bc1\u4e66\uff0c\u8fd8\u8981\u8fdb\u884c\u57df\u540d\u6240\u6709\u6743\u9a8c\u8bc1\uff08DCV\uff09\uff0c\u5373\u8bc1\u660e\u6b64\u57df\u540d\u662f\u4e3a\u4f60\u6240\u6709\u3002\u57df\u540d\u9a8c\u8bc1\u4e00\u822c\u6709\u4e09\u79cd\u65b9\u5f0f\uff0c\u5206\u522b\u662fDNS TXT\u9a8c\u8bc1\u3001\u90ae\u7bb1\u9a8c\u8bc1\u548cFile\u9a8c\u8bc1\uff08\u6216\u8005\u53ebHTTP Practical Demonstration\uff09\u3002\u9a8c\u8bc1\u901a\u8fc7\u540e\uff0c\u5c31\u7b49\u5f85CA\u7b7e\u53d1\u8bc1\u4e66\u5373\u53ef\u3002<\/p>\n<p>3. \u4e0b\u8f7d\u5e76\u5b89\u88c5\u8bc1\u4e66\u3002CA\u7b7e\u53d1\u8bc1\u4e66\u540e\uff0c\u4f60\u53ef\u4ee5\u4eceCA\u7684\u7f51\u7ad9\u4e0b\u8f7d\u8bc1\u4e66\u6587\u4ef6\uff0c\u6839\u636e\u4f60\u7684Web\u670d\u52a1\u5668\u7c7b\u578b\u9009\u62e9\u5bf9\u5e94\u7684\u683c\u5f0f\uff0c\u4f8b\u5982Apache\u3001Nginx\u7b49\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4f60\u4f1a\u4e0b\u8f7d\u5230\u4e24\u4e2a\u6216\u4e09\u4e2a.crt\u6587\u4ef6\uff0c\u5176\u4e2d\u4e00\u4e2a\u662f\u670d\u52a1\u5668\u8bc1\u4e66\uff08server.crt\uff09\uff0c\u4e00\u4e2a\u662f\u4e2d\u95f4\u8bc1\u4e66\uff08intermediate.crt\uff09\uff0c\u4e00\u4e2a\u662f\u6839\u8bc1\u4e66\uff08root.crt\uff09\u3002\u6709\u65f6\u5019\u4e2d\u95f4\u8bc1\u4e66\u548c\u6839\u8bc1\u4e66\u4f1a\u5408\u5e76\u4e3a\u4e00\u4e2a\u6587\u4ef6\uff08chain.crt\uff09<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/29\/18\/24886827894.jpg\" \/><\/figure>\n<\/p>\n<p>\u3002\u7136\u540e\uff0c\u4f60\u9700\u8981\u5c06\u8fd9\u4e9b\u6587\u4ef6\u5b89\u88c5\u5230\u4f60\u7684Web\u670d\u52a1\u5668\u4e0a\uff0c\u5e76\u914d\u7f6e\u76f8\u5e94\u7684\u53c2\u6570\u3002\u5177\u4f53\u5b89\u88c5\u6b65\u9aa4\u5c31\u4e0d\u518d\u8d58\u8ff0\u4e86\u3002<\/p>\n<p>\u5230\u8fd9\u91cc\u6211\u4eec\u5c31\u5b8c\u6210\u4e86\u7533\u8bf7SSL\u8bc1\u4e66\u7684\u5168\u90e8\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u7533\u8bf7sslSSL\uff08Secure Socket Layer\uff09\u662f\u4e00\u79cd\u5b89\u5168\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u548cWeb\u670d\u52a1\u5668\u4e4b\u95f4\u5efa\u7acb\u52a0\u5bc6\u7684\u901a\u4fe1\u901a\u9053\uff0c\u4fdd\u62a4\u6570\u636e\u7684\u5b89\u5168\u548c\u5b8c\u6574\u6027\u3002SSL\u8bc1\u4e66\u662f\u4e00\u79cd\u6570\u5b57\u8bc1\u4e66\uff0c\u7528\u4e8e\u9a8c\u8bc1\u7f51\u7ad9\u7684<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2145],"tags":[3870,3869,2183,802,754],"class_list":["post-3399","post","type-post","status-publish","format-standard","hentry","category-https","tag-https-","tag-openssl-https-cnf","tag-2183","tag-802","tag-754"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/3399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=3399"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/3399\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=3399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=3399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=3399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}