<\/figure>\n<\/p>\na:2048 -nodes -keyout yourdomain.key -out yourdomain.csr<\/p>\n
“`<\/p>\n
\u5176\u4e2d\uff0cyourdomain.key\u662f\u79c1\u94a5\u6587\u4ef6\u7684\u540d\u79f0\uff0cyourdomain.csr\u662fCSR\u6587\u4ef6\u7684\u540d\u79f0\u3002\u5728\u6267\u884c\u8be5\u547d\u4ee4\u65f6\uff0c\u4f60\u9700\u8981\u8f93\u5165\u4e00\u4e9b\u4fe1\u606f\uff0c\u5982\u7ec4\u7ec7\u540d\u79f0\u3001\u57df\u540d\u7b49\u3002<\/p>\n
2. \u5c06CSR\u63d0\u4ea4\u7ed9CA\u673a\u6784\u8fdb\u884c\u9a8c\u8bc1<\/p>\n
\u751f\u6210CSR\u6587\u4ef6\u540e\uff0c\u4f60\u9700\u8981\u5c06\u5176\u63d0\u4ea4\u7ed9CA\u673a\u6784\u8fdb\u884c\u9a8c\u8bc1\u3002CA\u673a\u6784\u4f1a\u5bf9CSR\u6587\u4ef6\u4e2d\u7684\u4fe1\u606f\u8fdb\u884c\u9a8c\u8bc1\uff0c\u5e76\u5728\u9a8c\u8bc1\u901a\u8fc7\u540e\u9881\u53d1SSL\u8bc1\u4e66\u3002<\/p>\n
\u4f60\u53ef\u4ee5\u9009\u62e9\u5411\u4efb\u4f55CA\u673a\u6784\u63d0\u4ea4CSR\u6587\u4ef6\uff0c\u5982Comodo\u3001Symantec\u7b49\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cCA\u673a\u6784\u4f1a\u5411\u4f60\u53d1\u9001\u4e00\u5c01\u9a8c\u8bc1\u90ae\u4ef6\uff0c\u4f60\u9700\u8981\u6309\u7167\u90ae\u4ef6\u4e2d\u7684\u6307\u793a\u8fdb\u884c\u64cd\u4f5c\uff0c\u4ee5\u5b8c\u6210\u9a8c\u8bc1\u3002<\/p>\n
3. CA\u673a\u6784\u5bf9CSR\u8fdb\u884c\u9a8c\u8bc1\u5e76\u9881\u53d1\u8bc1\u4e66<\/p>\n
\u5728CA\u673a\u6784\u9a8c\u8bc1\u901a\u8fc7\u540e\uff0c\u5b83\u4f1a\u5411\u4f60\u53d1\u9001\u4e00\u4e2aSSL\u8bc1\u4e66\u3002\u8be5\u8bc1\u4e66\u5305\u542b\u4e86\u4f60\u7684\u57df\u540d\u3001\u7ec4\u7ec7\u540d\u79f0\u7b49\u4fe1\u606f\uff0c\u4ee5\u53caCA\u673a\u6784\u7684\u7b7e\u540d\u3002<\/p>\n
\u4f60\u9700\u8981\u5c06\u8be5\u8bc1\u4e66\u4e0b\u8f7d\u5230\u4f60\u7684centos\u670d\u52a1\u5668\u4e0a\uff0c\u5e76\u5c06\u5176\u4e0e\u79c1\u94a5\u6587\u4ef6\u8fdb\u884c\u5339\u914d\u3002\u8fd9\u6837\uff0c\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528SSL\u8bc1\u4e66\u5bf9\u7f51\u7ad9\u8fdb\u884c\u52a0\u5bc6\u901a\u4fe1\u4e86\u3002<\/p>\n
4. \u5c06\u8bc1\u4e66\u5b89\u88c5\u5230\u670d\u52a1\u5668\u4e0a<\/p>\n
\u6700\u540e\u4e00\u6b65\u662f\u5c06SSL\u8bc1\u4e66\u5b89\u88c5\u5230centos\u670d\u52a1\u5668\u4e0a\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06\u8bc1\u4e66\u548c\u79c1\u94a5\u6587\u4ef6\u5b89\u88c5\u5230Apache\u670d\u52a1\u5668\u4e0a\uff1a<\/p>\n
“`<\/p>\n
sudo mkdir \/etc\/httpd\/ssl<\/p>\n
sudo cp yourdomain.crt \/etc\/httpd\/ssl\/<\/p>\n
sudo cp yourdomain.key \/etc\/httpd\/ssl\/<\/p>\n
“`<\/p>\n
\u5176\u4e2d\uff0cyourdomain.crt\u662fSSL\u8bc1\u4e66\u7684\u540d\u79f0\uff0cyourdomain.key\u662f\u79c1\u94a5\u6587\u4ef6\u7684\u540d\u79f0\u3002\u5728\u5c06\u8bc1\u4e66\u548c\u79c1\u94a5\u6587\u4ef6\u590d\u5236\u5230\/etc\/httpd\/ssl\/\u76ee\u5f55\u540e\uff0c\u4f60\u9700\u8981\u5728Apache\u670d\u52a1\u5668\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9aSSL\u8bc1\u4e66\u7684\u4f4d\u7f6e\uff1a<\/p>\n
“`<\/p>\n
SSLEngine on<\/p>\n
SSLCertificateFile \/etc\/httpd\/ssl\/yourdomain.crt<\/p>\n
SSLCertificateKeyFile \/etc\/httpd\/ssl\/yourdomain.key<\/p>\n
“`<\/p>\n
\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e\uff0c\u4f60\u7684centos\u670d\u52a1\u5668\u5c31\u53ef\u4ee5\u4f7f\u7528SSL\u8bc1\u4e66\u5bf9\u7f51\u7ad9\u8fdb\u884c\u52a0\u5bc6\u901a\u4fe1\u4e86\u3002<\/p>\n
\u603b\u7ed3<\/p>\n
\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u5728centos\u670d\u52a1\u5668\u4e0a\u7533\u8bf7\u548c\u5b89\u88c5SSL\u8bc1\u4e66\u7684\u539f\u7406\u548c\u8be6\u7ec6\u6b65\u9aa4\u3002\u901a\u8fc7\u4e86\u89e3SSL\u8bc1\u4e66\u7684\u57fa\u672c\u77e5\u8bc6\uff0c\u5e76\u6309\u7167\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u4e3a\u4f60\u7684\u7f51\u7ad9\u6dfb\u52a0SSL\u8bc1\u4e66\uff0c\u63d0\u5347\u7f51\u7ad9\u7684\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5728\u73b0\u4ee3\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0cSSL\u8bc1\u4e66\u5df2\u7ecf\u6210\u4e3a\u4e86\u4fdd\u969c\u7f51\u7ad9\u5b89\u5168\u7684\u91cd\u8981\u624b\u6bb5\u3002\u5982\u679c\u4f60\u662f\u4e00\u540dcentos\u670d\u52a1\u5668\u7ba1\u7406\u5458\uff0c\u90a3\u4e48\u4f60\u9700\u8981\u4e86\u89e3\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u7533\u8bf7\u548c\u5b89\u88c5SSL\u8bc1\u4e66\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u5c06\u4e3a\u4f60\u4ecb\u7ecd\u5728centos\u670d\u52a1\u5668<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[3161,3160,171,146,57],"class_list":["post-1463","post","type-post","status-publish","format-standard","hentry","category-sslzhengshushenqing","tag-https","tag-php-https","tag-171","tag-146","tag-57"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/1463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/comments?post=1463"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/1463\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/media?parent=1463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/categories?post=1463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/tags?post=1463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}