{"id":244,"date":"2019-09-11T08:57:57","date_gmt":"2019-09-11T00:57:57","guid":{"rendered":"https:\/\/freeapp.sbs\/blog\/?p=244"},"modified":"2025-04-01T17:04:41","modified_gmt":"2025-04-01T08:04:41","slug":"bpvsxwenk3fysac","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2019\/09\/11\/bpvsxwenk3fysac\/","title":{"rendered":"\u4e3aPlexServer\u6dfb\u52a0Let&#8217;s encrypt\u7684\u8bc1\u4e66"},"content":{"rendered":"<p>1\u3001\u5982\u679c\u670d\u52a1\u5668\u4e0a\u5df2\u7ecf\u5b58\u5728\u8bc1\u4e66\u6587\u4ef6\uff0c\u628a\u6587\u4ef6\u62f7\u8d1d\u51fa\u6765\u5373\u53ef\uff0c\u8fd9\u91cc\u57df\u540d\u4ee5domainname.com\u4e3a\u4f8b<br \/>\n\/etc\/letsencrypt\/live\/domainname.com<br \/>\ncert.pem chain.pem fullchain.pem privkey.pem<br \/>\n\u8fd9\u91cc\u4e0d\u7528fullchain.pem<br \/>\n2\u3001\u751f\u6210\u201c\u6253\u5305\u8bc1\u4e66\u201d<br \/>\nopenssl pkcs12 -export -out archive.pfx -in cert.pem -inkey privkey.pem -certfile chain.pem -name &#8220;domainname.com&#8221;<br \/>\n\u751f\u6210\u8bc1\u4e66\u7684\u8fc7\u7a0b\u4f1a\u8981\u6c42\u8bbe\u7f6e\u5bc6\u7801\uff08password\uff09\uff0c\u540e\u7eed\u9700\u8981\u8be5\u5bc6\u7801<br \/>\n3\u3001\u5728\u670d\u52a1\u5668\u4e0a\u5efa\u7acb\u9002\u5408\u7684\u76ee\u5f55\uff0c\u5c06\u8bc1\u4e66\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u5e76\u4e3a\u8bc1\u4e66\u8bbe\u7f6e\u6743\u9650<br \/>\nsudo chown plex:plex \/var\/lib\/plexmediaserver\/archive.pfx<br \/>\n4\u3001\u5728\u7f51\u9875\u7aef\u8bbe\u7f6ePlex\u670d\u52a1\u5668<br \/>\n\u8bbe\u7f6e \u3009 \u7f51\u7edc \u3009 \u9ad8\u7ea7\u8bbe\u7f6e<br \/>\nCustom certificate location<br \/>\n\/var\/lib\/plexmediaserver\/archive.pfx<br \/>\n#Path to a PKCS #12 file containing a certificate and private key to enable TLS support on a custom domain.<\/p>\n<p>Custom certificate encryption key<br \/>\npassword<\/p>\n<p>Custom certificate domain<br \/>\ndomainname.com<br \/>\n#Domain name to be published to plex.tv using your mapped port; must match a name from the custom certificate file.<br \/>\n5\u3001\u91cd\u542fPlexServer\u4e0a\u7684\u670d\u52a1<br \/>\n6\u3001\u6e05\u9664\u6d4f\u89c8\u5668\u7f13\u5b58\uff0c\u518d\u6b21\u8bbf\u95ee\u5373\u662f\u52a0\u5bc6\u8bbf\u95ee\u3002<br \/>\n\u53c2\u8003\uff1a<br \/>\n<a href=\"https:\/\/imgur.com\/a\/9UKLh\">https:\/\/imgur.com\/a\/9UKLh<\/a><br \/>\n<a href=\"https:\/\/gist.github.com\/srilankanchurro\/fa3fdeb5cf10ebb251aa88338b8b37db\">https:\/\/gist.github.com\/srilankanchurro\/fa3fdeb5cf10ebb251aa88338b8b37db<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5982\u679c\u670d\u52a1\u5668\u4e0a\u5df2\u7ecf\u5b58\u5728\u8bc1\u4e66\u6587\u4ef6\uff0c\u628a\u6587\u4ef6\u62f7\u8d1d\u51fa\u6765\u5373\u53ef\uff0c\u8fd9\u91cc\u57df\u540d\u4ee5domainname.com\u4e3a\u4f8b \/etc\/letsencrypt\/live\/domainname.com cert.pem chain.pem fullchain.pem privkey.pem \u8fd9\u91cc\u4e0d\u7528fullchain.pem 2\u3001\u751f\u6210\u201c\u6253\u5305\u8bc1\u4e66\u201d openssl pkcs12 -export -out archive.pfx -in cert.pem -inkey privkey.pem -certfile chain.pem -name &#8220;domainname.com&#8221; \u751f\u6210\u8bc1\u4e66\u7684\u8fc7\u7a0b\u4f1a\u8981\u6c42\u8bbe\u7f6e\u5bc6\u7801\uff08password\uff09\uff0c\u540e\u7eed\u9700\u8981\u8be5\u5bc6\u7801 3\u3001\u5728\u670d\u52a1\u5668\u4e0a\u5efa\u7acb\u9002\u5408\u7684\u76ee\u5f55\uff0c\u5c06\u8bc1\u4e66\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u5e76\u4e3a\u8bc1\u4e66\u8bbe\u7f6e\u6743\u9650 sudo chown plex:plex \/var\/lib\/plexmediaserver\/archive.pfx 4\u3001\u5728\u7f51\u9875\u7aef\u8bbe\u7f6ePlex\u670d\u52a1\u5668 \u8bbe\u7f6e \u3009 \u7f51\u7edc \u3009 \u9ad8\u7ea7\u8bbe\u7f6e Custom certificate location \/var\/lib\/plexmediaserver\/archive.pfx #Path to a PKCS #12 file containing a certificate and private key to &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-244","post","type-post","status-publish","format-standard","hentry","category-bbvohlmmuzd-a"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=244"}],"version-history":[{"count":1,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":2304,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/244\/revisions\/2304"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}