{"id":113,"date":"2022-09-05T05:21:35","date_gmt":"2022-09-05T05:21:35","guid":{"rendered":"http:\/\/www.luluck.com\/?p=113"},"modified":"2023-02-27T00:43:49","modified_gmt":"2023-02-27T00:43:49","slug":"bt-xray-wp%e5%85%b1%e5%ad%98%e7%8e%af%e5%a2%83%e4%b8%8b-zerossl%e8%af%81%e4%b9%a6%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"http:\/\/www.luluck.com\/index.php\/2022\/09\/05\/bt-xray-wp%e5%85%b1%e5%ad%98%e7%8e%af%e5%a2%83%e4%b8%8b-zerossl%e8%af%81%e4%b9%a6%e5%ae%89%e8%a3%85\/","title":{"rendered":"BT\/Xray\/Wp\u5171\u5b58\u73af\u5883\u4e0b zerossl\u8bc1\u4e66\u5b89\u88c5"},"content":{"rendered":"\n<p>After downloading your certificate, you should have a ZIP containing the following certificate files:<\/p>\n\n\n\n<ul>\n<li>certificate.crt<\/li>\n\n\n\n<li>ca_bundle.crt<\/li>\n\n\n\n<li>private.key<\/li>\n<\/ul>\n\n\n\n<p><strong>Upload Certificate Files<\/strong><\/p>\n\n\n\n<p>upload the certificate files above (certificate.crt, ca_bundle.crt and private.key) to \/www\/server\/panel\/vhost\/cert\/www.luluck.com<\/p>\n\n\n\n<p><strong>Merge .crt Files<\/strong><\/p>\n\n\n\n<p>NGINX requires all .crt files to be merged in order to allow SSL installation. You will need to run the following command in order to merge your certificate.crt and ca_bundle.crt files.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ cat certificate.crt ca_bundle.crt >> certificate.crt<\/pre>\n\n\n\n<p><strong>Convert .crt and .key to .pem<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># openssl rsa -in private.key -out privkey.pem<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># openssl x509 -in certificate.crt -out fullchain.pem<\/pre>\n\n\n\n<p><strong>\u6ce8\uff1abt\u9762\u677f\u4e0a\u4e0d\u8981\u6267\u884c\u90e8\u7f72ssl\u8bc1\u4e66\u7684\u6b65\u9aa4\uff01\uff01\uff01\u56e0\u4e3axray\u7684config,json \u6587\u4ef6\u4e2d\u5df2\u5199\u5165:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>&#8220;certificates&#8221;: [<\/p>\n\n\n\n<p> {<\/p>\n\n\n\n<p>&nbsp; &#8220;certificateFile&#8221;: &#8220;\/www\/server\/panel\/vhost\/cert\/www.luluck.com\/fullchain.pem&#8221;,<\/p>\n\n\n\n<p> &#8220;keyFile&#8221;: &#8220;\/www\/server\/panel\/vhost\/cert\/www.luluck.com\/privkey.pem&#8221;<\/p>\n\n\n\n<p> }<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]<\/p>\n<\/blockquote>\n\n\n\n<p>\u5982\u6309\u5e38\u89c4\u65b9\u5f0f\u5728BT\/xray\/wp\u5171\u5b58\u73af\u5883\u4e0b\u90e8\u7f72\u8bc1\u4e66\uff0c\u5982\u5728\u7f51\u7ad9\u914d\u7f6e\u6587\u4ef6\u4e0b\u5199\u5165\uff1a<\/p>\n\n\n\n<p>ssl_certificate \/www\/server\/panel\/vhost\/cert\/www.luluck.com\/fullchain.pem;<\/p>\n\n\n\n<p>ssl_certificate_key \/www\/server\/panel\/vhost\/cert\/www.luluck.com\/privkey.pem;<\/p>\n\n\n\n<p><strong>\u867d\u7136BT\u9762\u677f\u4e2d\u4f1a\u663e\u793a\u8bc1\u4e66\u90e8\u7f72\u6210\u529f\uff0c\u4f46\u5b9e\u9645\u4e0a\u6d4f\u89c8\u5668\u8bbf\u95ee\u4e0d\u6b63\u5e38\uff01<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After downloading your certificate, you should hav&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/113"}],"collection":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":4,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":124,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/113\/revisions\/124"}],"wp:attachment":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}