{"id":1044,"date":"2014-12-08T15:50:46","date_gmt":"2014-12-08T07:50:46","guid":{"rendered":"http:\/\/hesiwei.cn\/?p=1044"},"modified":"2014-12-08T15:50:46","modified_gmt":"2014-12-08T07:50:46","slug":"namecheap%e4%b9%b0%e7%9a%84positivessl%e8%af%81%e4%b9%a6%e7%9a%84%e6%bf%80%e6%b4%bb%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"http:\/\/hesiwei.cn\/?p=1044","title":{"rendered":"Namecheap\u4e70\u7684PositiveSSL\u8bc1\u4e66\u7684\u6fc0\u6d3b\u4f7f\u7528"},"content":{"rendered":"<p><span class=\"Apple-tab-span\">\t<\/span>\u7f51\u8d2d\u661f\u671f\u4e00\u5241\u624b\u7684\u516d\u5757\u94b1ssl\u8bc1\u4e66\u4e00\u76f4\u653e\u7740\u6ca1\u52a8\uff0c\u4eca\u5929\u6709\u7a7a\u53bb\u6fc0\u6d3b\u4e86\uff0c\u7ed99\u5757\u94b1\u7684curl.xyz\u57df\u540d\u52a0\u4e0a\u4e86https\uff0c\u56e7\uff5e<br \/><span class=\"Apple-tab-span\">\t<\/span>PositiveSSL\u8ba4\u8bc1\u662fComodo\u7684\u5165\u95e8\u7ea7\u4ea7\u54c1\uff0cPositiveSSL\u53ea\u5bf9\u4f60\u7684\u57df\u540d\u6240\u6709\u6743\u8fdb\u884c\u8ba4\u8bc1,PositiveSSL\u5df2\u7ecf\u88ab\u51e0\u4e4e\u6240\u6709\u6d41\u884c\u7684\u6d4f\u89c8\u5668\u652f\u6301\uff0c\u53ea\u8981\u4f60\u7684PositiveSSL\u8ba4\u8bc1\u6b63\u5e38\uff0c\u7528\u6d4f\u89c8\u5668\u6253\u5f00\u4f60\u63d0\u4f9b\u7684https\u7f51\u9875\u5c31\u50cf\u666e\u901a\u7684http\u7f51\u9875\u4e00\u6837\uff0c\u6d4f\u89c8\u5668\u4e0d\u4f1a\u5f39\u51fa\u5b89\u5168\u8b66\u544a\u3002<br \/>ox01&nbsp;<br \/><span class=\"Apple-tab-span\">\t<\/span>\u5728\u5e10\u6237\u7684ssl\u5217\u8868\u4e2d\u9009\u62e9\u672a\u66fe\u4f7f\u7528\u8fc7\u7684SSL\u8ba4\u8bc1\u670d\u52a1\uff0c\u70b9\u51fb\u53f3\u8fb9\u7684Active\u94fe\u63a5\uff0c\u5f00\u59cb\u7533\u8bf7\u6fc0\u6d3b\u4f60\u7684SSL\u8ba4\u8bc1,\u63a5\u4e0b\u6765\u6211\u4eec\u8981\u53d1\u9001\u4e00\u4e2a\u8ba4\u8bc1\u7b7e\u540d\u8bf7\u6c42\u6587\u4ef6\u7ed9namecheap\u6765\u5b8c\u6210\u6fc0\u6d3b\u8fc7\u7a0b\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u9009\u62e9apache+openssl\u7c7b\u578b\u7684\u7b7e\u540d\u5373\u53ef\uff0c\u5982\u679c\u7f51\u7edc\u670d\u52a1\u5668\u4e0d\u662fapache\u6216\u8005apache\u517c\u5bb9\u7684\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u5728\u5217\u8868\u91cc\u9762\u9009\u62e9\u9002\u5408\u7684\u8ba4\u8bc1\u7c7b\u578b\u3002<br \/>ox02<br \/><span class=\"Apple-tab-span\">\t<\/span>ssh \u5230\u57df\u540d\u6240\u5728\u7684\u670d\u52a1\u5668\uff0cNamecheap SSL\u8981\u6c42\u662f\u751f\u62102048\u4f4d\u7684\u5bc6\u94a5\u6587\u4ef6\uff1a<br \/><span class=\"Apple-tab-span\">\t<\/span>openssl genrsa -out privkey.key 2048<br \/>\u751f\u6210\u8bc1\u4e66\u8bf7\u6c42\u6587\u4ef6\uff1a<br \/><span class=\"Apple-tab-span\">\t<\/span>openssl req -new -key privkey.key -out cert.csr<br \/>\u6267\u884c\u4ee5\u4e0a\u547d\u4ee4\u540e\uff0c\u4f1a\u8981\u6c42\u4f60\u586b\u5199\u57fa\u672c\u4fe1\u606f\uff0c\u4f8b\u5982\u56fd\u5bb6\u3001\u90ae\u7bb1\u7b49\u3002\u5176\u4e2d\u6709\u4e2a\u9700\u8981\u7279\u522b\u6ce8\u610f\u5230\u5730\u65b9\u662fCommon Name\uff0c\u5fc5\u987b\u586b\u5199\u4f60\u7684\u57df\u540d\uff0c\u800c\u4e14\u4e0d\u80fd\u6709\u5927\u5199\u5b57\u6bcd\uff0c\u5426\u5219\u8ba4\u8bc1\u7533\u8bf7\u4f1a\u5931\u8d25\u3002\u53e6\u5916\u5728\u5236\u4f5cCSR\u6587\u4ef6\u548c\u79c1\u94a5\u7684\u65f6\u5019\uff0c\u4f1a\u6709\u4e00\u6b65\u8be2\u95ee\u4f60\u79c1\u94a5\u7684\u5bc6\u7801\uff0c\u53ef\u4ee5\u4e0d\u8f93\u5165\u3002<br \/><span class=\"Apple-tab-span\">\t<\/span>\u7528\u547d\u4ee4\uff1acat cert.csr\u548ccat privkey.key \u80fd\u770b\u5230\u521a\u521a\u751f\u6210\u7684CSR\u548cKey\u6587\u4ef6\u5185\u5bb9\u4e86\u3002\u5176\u4e2dSCR\u6587\u4ef6\u5185\u5bb9\u5c31\u662f\u6211\u4eec\u521a\u521a\u8981\u6fc0\u6d3bSSL\u8bc1\u4e66\u8981\u7528\u5230\u7684\u3002<br \/>ox03<br \/><span class=\"Apple-tab-span\">\t<\/span>\u628a\u8fd9\u4e2acsr\u6587\u4ef6\u7684\u5185\u5bb9\u590d\u5236\u5230Namecheap\u521a\u624d\u7533\u8bf7\u65f6\u9875\u9762\u4e0a\u7684\u6587\u672c\u8f93\u5165\u6846\u91cc\u9762\uff0c\u5e76\u4e14\u70b9\u51fbnext\uff0c\u8fdb\u884c\u4e0b\u4e00\u6b65\u3002<br \/><span class=\"Apple-tab-span\">\t<\/span>\u63a5\u4e0b\u6765\u8981\u6c42\u4f60\u63d0\u4f9b\u4e00\u4e2a\u80fd\u8868\u660e\u4f60\u662f\u57df\u540d\u6240\u6709\u8005\u7684\u90ae\u7bb1\u6765\u8fdb\u884c\u9a8c\u8bc1\uff0c\u4f60\u53ef\u4ee5\u4ece\u4ed6\u63d0\u4f9b\u7684\u9009\u9879\u4e2d\u9009\u62e9\u4e00\u4e2a\uff0c\u786e\u4fdd\u4f60\u7684\u90ae\u7bb1\u53ef\u4ee5\u6b63\u5e38\u63a5\u6536\u90ae\u4ef6\u3002\u9009\u62e9\u4e00\u4e2a\u90ae\u7bb1\u540e\uff0c\u70b9\u51fbnext\uff0c\u4f60\u7684\u7533\u8bf7\u5c31\u7b97\u63d0\u4ea4\u4e86\uff0c\u4e0b\u9762\u9700\u8981\u7b49\u6388\u6743\u516c\u53f8Comodo\u6765\u9a8c\u8bc1\u4f60\u662f\u57df\u540d\u6240\u6709\u8005\u8eab\u4efd\u3002<br \/><span class=\"Apple-tab-span\">\t<\/span>\u6536\u5230\u90ae\u4ef6\u540e\u70b9\u51fb\u90ae\u7bb1\u91cc\u9762\u7684 here \u94fe\u63a5\uff0c\u5e76\u4e14\u8f93\u5165\u4e0b\u9762\u7684\u9a8c\u8bc1\u7801\uff0c\u63d0\u4ea4\u7ed9Comodo\u5373\u53ef\u3002\u63a5\u7740\u7ee7\u7eed\u7b49\uff0ccomodo\u4f1a\u5c06\u751f\u6210\u7684ssl\u8bc1\u4e66\u6587\u4ef6\u53d1\u9001\u7ed9\u4f60\u3002<br \/>ox04<br \/><span class=\"Apple-tab-span\">\t<\/span>\u5c06\u81ea\u5df1Key\u6587\u4ef6\uff0c\u5916\u52a0\u521a\u521a\u6536\u5230\u7684.crt\uff0c\u5171\u4e24\u4e2a\u6587\u4ef6\u4e00\u540c\u4e0a\u4f20\u5230VPS\u4e3b\u673a\u7684\u67d0\u4e00\u4e2a\u6587\u4ef6\u5939\u5f53\u4e2d\u3002\u7f16\u8f91Nginx\u914d\u7f6e\u6587\u4ef6\uff0c\u5728Server\u4e2d\u4e3b\u8981\u662f\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<br \/><span class=\"Apple-tab-span\">\t<\/span>listen  443;<br \/><span class=\"Apple-tab-span\">\t<\/span>ssl on;<br \/>\n<br \/><span class=\"Apple-tab-span\">\t<\/span>ssl_certificate \/root\/curl_xyz.crt;<br \/>\n<br \/><span class=\"Apple-tab-span\">\t<\/span>ssl_certificate_key \/root\/privkey.key;<br \/>\n<br \/><span class=\"Apple-tab-span\">\t<\/span>ssl_session_timeout 5m;<br \/>\u91cd\u542fNginx\u5b8c\u6210\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u8d2d\u661f\u671f\u4e00\u5241\u624b\u7684\u516d\u5757\u94b1ssl\u8bc1\u4e66\u4e00\u76f4\u653e\u7740\u6ca1\u52a8\uff0c\u4eca\u5929\u6709\u7a7a\u53bb\u6fc0\u6d3b\u4e86\uff0c\u7ed99\u5757\u94b1\u7684curl.xyz\u57df\u540d\u52a0\u4e0a\u4e86https [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1044","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/hesiwei.cn\/index.php?rest_route=\/wp\/v2\/posts\/1044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hesiwei.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hesiwei.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hesiwei.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hesiwei.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1044"}],"version-history":[{"count":0,"href":"http:\/\/hesiwei.cn\/index.php?rest_route=\/wp\/v2\/posts\/1044\/revisions"}],"wp:attachment":[{"href":"http:\/\/hesiwei.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hesiwei.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1044"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hesiwei.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}