{"id":289,"date":"2023-07-19T17:23:47","date_gmt":"2023-07-19T09:23:47","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=289"},"modified":"2023-07-19T17:23:47","modified_gmt":"2023-07-19T09:23:47","slug":"%e7%8b%ac%e7%ab%8b%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%a6%82%e4%bd%95%e7%94%b3%e8%af%b7ssl%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/289\/","title":{"rendered":"\u72ec\u7acb\u670d\u52a1\u5668\u5982\u4f55\u7533\u8bf7ssl\uff1f"},"content":{"rendered":"

SSL\uff08Secure Sockets Layer\uff09\u662f\u4e00\u79cd\u4fdd\u62a4\u7f51\u7edc\u901a\u4fe1\u5b89\u5168\u7684\u534f\u8bae\uff0c\u5b83\u901a\u8fc7\u52a0\u5bc6\u6570\u636e\u4f20\u8f93\u6765\u4fdd\u62a4\u654f\u611f\u4fe1\u606f\u7684\u5b89\u5168\u3002\u5728\u7f51\u7ad9\u4e0a\u4f7f\u7528SSL\u8bc1\u4e66\u53ef\u4ee5\u4e3a\u8bbf\u95ee\u8005\u63d0\u4f9b\u66f4\u5b89\u5168\u7684\u6d4f\u89c8\u548c\u4ea4\u6613\u4f53\u9a8c\u3002\u5982\u679c\u4f60\u9700\u8981\u5728\u72ec\u7acb\u670d\u52a1\u5668\u4e0a\u7533\u8bf7SSL\u8bc1\u4e66\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n

1. \u9009\u62e9SSL\u8bc1\u4e66\u7c7b\u578b<\/p>\n

\u9996\u5148\u9700\u8981\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7f51\u7ad9\u7684SSL\u8bc1\u4e66\u7c7b\u578b\uff0c\u901a\u5e38\u6709DV SSL\u8bc1\u4e66\u3001OV SSL\u8bc1\u4e66\u548cEV SSL\u8bc1\u4e66\u4e09\u79cd\u7c7b\u578b\u3002\u5176\u4e2dDV SSL\u8bc1\u4e66\u53ea\u9700\u8981\u9a8c\u8bc1\u57df\u540d\u6240\u6709\u6743\uff0c\u9a8c\u8bc1\u901f\u5ea6\u8f83\u5feb\uff0c\u9002\u5408\u4e2a\u4eba\u535a<\/p>\n

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

\u5ba2\u3001\u5c0f\u578b\u5546\u6237\u7b49\uff1bOV SSL\u8bc1\u4e66\u9700\u8981\u9a8c\u8bc1\u4f01\u4e1a\u4fe1\u606f\uff0c\u9a8c\u8bc1\u65f6\u95f4\u8f83\u957f\uff0c\u9002\u5408\u5927\u578b\u4f01\u4e1a\u3001\u7535\u5546\u7b49\uff1bEV SSL\u8bc1\u4e66\u9700\u8981\u8fdb\u884c\u66f4\u4e25\u683c\u7684\u9a8c\u8bc1\uff0c\u9a8c\u8bc1\u65f6\u95f4\u66f4\u957f\uff0c\u9002\u5408\u91d1\u878d\u673a\u6784\u3001\u653f\u5e9c\u673a\u6784\u7b49\u3002<\/p>\n

2. \u751f\u6210CSR<\/p>\n

\u5728\u7533\u8bf7SSL\u8bc1\u4e66\u4e4b\u524d\uff0c\u9700\u8981\u5148\u751f\u6210CSR\uff08Certificate Signing Request\uff09\uff0c\u5b83\u5305\u542b\u4e86\u7533\u8bf7\u8005\u7684\u516c\u94a5\u548c\u4e00\u4e9b\u57fa\u672c\u4fe1\u606f\uff0c\u5982\u56fd\u5bb6\u3001\u57ce\u5e02\u3001\u7ec4\u7ec7\u540d\u79f0\u7b49\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528openssl\u547d\u4ee4\u751f\u6210CSR\uff0c\u5177\u4f53\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr<\/p>\n

\u5176\u4e2dyourdomain.key\u662f\u751f\u6210\u7684\u79c1\u94a5\u6587\u4ef6\uff0cyourdomain.csr\u662f\u751f\u6210\u7684CSR\u6587\u4ef6\uff0c\u9700\u8981\u586b\u5199\u6b63\u786e\u7684\u4fe1\u606f\u3002<\/p>\n

3. \u8d2d\u4e70SSL\u8bc1\u4e66<\/p>\n

\u5728\u751f\u6210CSR\u4e4b\u540e\uff0c\u9700\u8981\u8d2d\u4e70SSL\u8bc1\u4e66\u3002\u53ef\u4ee5\u9009\u62e9\u4e00\u4e9b\u77e5\u540d\u7684SSL\u8bc1\u4e66\u63d0\u4f9b\u5546\uff0c\u5982Symantec\u3001Comodo\u3001DigiCert\u7b49\u3002\u5728\u8d2d\u4e70\u8bc1\u4e66\u65f6\uff0c\u9700\u8981\u63d0\u4f9b\u751f\u6210\u7684CSR\u6587\u4ef6\u548c\u4e00\u4e9b\u4e2a\u4eba\u6216\u4f01\u4e1a\u4fe1\u606f\uff0c\u5982\u516c\u53f8\u540d\u79f0\u3001\u5730\u5740\u3001\u7535\u8bdd\u7b49\u3002<\/p>\n

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

\u8d2d\u4e70SSL\u8bc1\u4e66\u540e\uff0c\u9700\u8981\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u8bc1\u4e66\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

\uff081\uff09\u5c06\u8bc1\u4e66\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e0a\uff0c\u901a\u5e38\u6709.crt\u548c.ca-bundle\u4e24\u4e2a\u6587\u4ef6\u3002<\/p>\n

\uff082\uff09\u5c06\u79c1\u94a5\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e0a\uff0c\u5373\u751f\u6210CSR\u65f6\u751f\u6210\u7684\u79c1\u94a5\u6587\u4ef6\u3002<\/p>\n

\uff083\uff09\u5c06\u8bc1\u4e66\u548c\u79c1\u94a5\u6587\u4ef6\u653e\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\u4e0b\uff0c\u5e76\u4fee\u6539\u6587\u4ef6\u6743\u9650\u4e3a600\u3002<\/p>\n

\uff084\uff09\u5728Apache\u6216Nginx\u7b49\u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0SSL\u8bc1\u4e66\u76f8\u5173\u914d\u7f6e\uff0c\u5982\u4e0b\uff1a<\/p>\n

Apache\uff1a<\/p>\n

SSLEngine on<\/p>\n

SSLCertificateFile \/path\/to\/your_domain.crt<\/p>\n

SSLCertificateKeyFile \/path\/to\/your_domain.key<\/p>\n

SSLCertificateChainFile \/path\/to\/DigiCertCA.crt<\/p>\n

Nginx\uff1a<\/p>\n

ssl_certificate \/path\/to\/your_domain.crt;<\/p>\n

ssl_certificate_key \/path\/to\/your_domain.key;<\/p>\n

ssl_trusted_certificate \/path\/to\/DigiCertCA.crt;<\/p>\n

\uff085\uff09\u91cd\u542f\u670d\u52a1\u5668\uff0c\u4f7f\u914d\u7f6e\u751f\u6548\u3002<\/p>\n

5. \u6d4b\u8bd5SSL\u8bc1\u4e66<\/p>\n

\u5728\u5b89\u88c5SSL\u8bc1\u4e66\u540e\uff0c\u9700\u8981\u8fdb\u884c\u6d4b\u8bd5\uff0c\u786e\u4fdd\u8bc1\u4e66\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u3002\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u5728\u7ebf\u5de5\u5177\uff0c\u5982ssl\u7f51\u7ad9\u514d\u8d39\u7533\u8bf7<\/a>SSL Checker\u3001SSL Shopper\u7b49\uff0c\u8fdb\u884c\u6d4b\u8bd5\u3002\u5982\u679c\u8bc1\u4e66\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\uff0c\u5c31\u53ef\u4ee5\u4e3a\u7f51\u7ad9\u63d0\u4f9b\u66f4\u5b89\u5168\u7684\u6d4f\u89c8\u548c\u4ea4\u6613\u4f53\u9a8c\u4e86\u3002<\/p>\n

\u603b\u4e4b\uff0c\u7533\u8bf7SSL\u8bc1\u4e66\u9700\u8981\u4e00\u5b9a\u7684\u6280\u672f\u548c\u64cd\u4f5c\u7ecf\u9a8c\uff0c\u9700\u8981\u4e25\u683c\u6309\u7167\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\u3002\u5982\u679c\u4e0d\u719f\u6089\u64cd\u4f5c\uff0c\u53ef\u4ee5\u5bfb\u6c42\u4e13\u4e1a\u7684\u6280\u672f\u652f\u6301\u6216\u54a8\u8be2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

SSL\uff08Secure Sockets Layer\uff09\u662f\u4e00\u79cd\u4fdd\u62a4\u7f51\u7edc\u901a\u4fe1\u5b89\u5168\u7684\u534f\u8bae\uff0c\u5b83\u901a\u8fc7\u52a0\u5bc6\u6570\u636e\u4f20\u8f93\u6765\u4fdd\u62a4\u654f\u611f\u4fe1\u606f\u7684\u5b89\u5168\u3002\u5728\u7f51\u7ad9\u4e0a\u4f7f\u7528SSL\u8bc1\u4e66\u53ef\u4ee5\u4e3a\u8bbf\u95ee\u8005\u63d0\u4f9b\u66f4\u5b89\u5168\u7684\u6d4f\u89c8\u548c\u4ea4\u6613\u4f53\u9a8c\u3002\u5982\u679c\u4f60\u9700\u8981\u5728\u72ec\u7acb<\/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":[522,712,713,16,30],"topic":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-sqssl","tag-https-","tag-https","tag-713","tag-16","tag-30"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/289","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=289"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=289"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}