\u5f00\u53d1ssl\u8bc1\u4e66\u7533\u8bf7\u4ef7\u683c\u5e2e\u52a9\u6587\u6863<\/a><\/p>\n\u5176\u4e2d\uff0c2048\u662fRSA\u5bc6\u94a5\u957f\u5ea6\uff0cyourdomain.key\u662f\u751f\u6210\u7684\u79c1\u94a5\u6587\u4ef6\uff0cyourdomain.csr\u662f\u751f\u6210\u7684CSR\u6587\u4ef6\u3002<\/p>\n
3.\u63d0\u4ea4CSR\u6587\u4ef6<\/p>\n
\u5c06\u751f\u6210\u7684CSR\u6587\u4ef6\u63d0\u4ea4\u5230CA\u673a\u6784\u8fdb\u884c\u5ba1\u6838\uff0c\u5ba1\u6838\u901a\u8fc7\u540eCA\u673a\u6784\u5c06\u9881\u53d1SSL\u8bc1\u4e66\u3002<\/p>\n
\u4e8c\u3001SSL\u8bc1\u4e66\u7684\u7ed1\u5b9a<\/p>\n
SSL\u8bc1\u4e66\u9881\u53d1\u540e\uff0c\u9700\u8981\u5c06\u5176\u7ed1\u5b9a\u5230\u57df\u540d\u4e0a\uff0c\u4ee5\u786e\u4fdd\u7f51\u7ad9\u7684\u8bbf\u95ee\u8fc7\u7a0b\u4e2d\u4f7f\u7528HTTPS\u534f\u8bae\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002<\/p>\n
1.\u5b89\u88c5SSL\u8bc1\u4e66<\/p>\n
\u5c06CA\u673a\u6784\u9881\u53d1\u7684SSL\u8bc1\u4e66\u4e0b\u8f7d\u5230\u670d\u52a1\u5668\uff0c\u5c06\u8bc1\u4e66\u6587\u4ef6\u548c\u79c1\u94a5\u6587\u4ef6\u4fdd\u5b58\u5230\u670d\u52a1\u5668\u7684SSL\u8bc1\u4e66\u76ee\u5f55\u4e2d\u3002\u7136\u540e\uff0c\u5728\u670d\u52a1\u5668\u4e0a\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
openssl rsa -in yourdomain.key -out yourdomain.key<\/p>\n
openssl x509 -in yourdomain.crt -out yourdomain.pem -outform PEM<\/p>\n
2.\u914d\u7f6eWeb\u670d\u52a1\u5668<\/p>\n
\u6839\u636e\u4f7f\u7528\u7684Web\u670d\u52a1\u5668\u4e0d\u540c\uff0c\u914d\u7f6e\u65b9<\/p>\n
<\/figure>\n<\/p>\n\u6cd5\u4e5f\u6709\u6240\u4e0d\u540c\u3002\u4ee5Apache\u670d\u52a1\u5668\u4e3a\u4f8b\uff0c\u9700\u8981\u5728Apache\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
\n
ServerName yourdomain.com<\/p>\n
ServerAlias www.yourdomain.com<\/p>\n
DocumentRoot \/var\/www\/html<\/p>\n
SSLEngine on<\/p>\n
SSLCertificateFile \/path\/to\/yourdomain.crt<\/p>\n
SSLCertificateKeyFile \/path\/to\/yourdomain.key<\/p>\n
SSLCertificateChainFile \/path\/to\/yourdomain.pem<\/p>\n<\/p>\n
\u5176\u4e2d\uff0cyourdomain.com\u662f\u7ed1\u5b9a\u7684\u57df\u540d\uff0c\/var\/www\/html\u662f\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\uff0c\/path\/to\/yourdomain.crt\u3001\/path\/to\/yourdomain.key\u3001\/path\/to\/yourdomain.pem\u662fSSL\u8bc1\u4e66\u7684\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n
3.\u91cd\u542fWeb\u670d\u52a1\u5668<\/p>\n
\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u9700\u8981\u91cd\u542fWeb\u670d\u52a1\u5668\uff0c\u4f7f\u914d\u7f6e\u751f\u6548\u3002<\/p>\n
\u4ee5\u4e0a\u5c31\u662fSSL\u8bc1\u4e66\u7684\u7533\u8bf7\u548c\u7ed1\u5b9a\u8fc7\u7a0b\u3002\u7533\u8bf7SSL\u8bc1\u4e66\u548c\u7ed1\u5b9aSSL\u8bc1\u4e66\u4e0d\u4ec5\u53ef\u4ee5\u63d0\u9ad8\u7f51\u7ad9\u7684\u5b89\u5168\u6027\uff0c\u8fd8\u53ef\u4ee5\u63d0\u9ad8\u7f51\u7ad9\u7684\u4fe1\u8a89\u5ea6\uff0c\u8ba9\u7528\u6237\u66f4\u52a0\u4fe1\u4efb\u7f51\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
SSL\u8bc1\u4e66\u662f\u4e00\u79cd\u6570\u5b57\u8bc1\u4e66\uff0c\u7528\u4e8e\u4fdd\u62a4\u7f51\u7ad9\u548c\u7528\u6237\u4e4b\u95f4\u7684\u901a\u4fe1\u8fc7\u7a0b\uff0c\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u4f20\u8f93\u3002SSL\u8bc1\u4e66\u901a\u8fc7\u52a0\u5bc6\u6280\u672f\uff0c\u5c06\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u52a0\u5bc6\u540e\u518d\u4f20\u8f93\u5230\u670d\u52a1\u5668\uff0c\u4fdd\u969c\u4e86\u6570\u636e\u7684\u5b89\u5168\u6027\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u7533\u8bf7SSL\u8bc1\u4e66\u5e76\u7ed1<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[1675,197,528,1676,138],"topic":[],"class_list":{"0":"post-724","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-sslzhengshu","7":"tag-https","8":"tag-197","9":"tag-528","11":"tag-138"},"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=724"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/724\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=724"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}