{"id":240,"date":"2024-05-02T14:26:25","date_gmt":"2024-05-02T14:26:25","guid":{"rendered":"http:\/\/www.luluck.com\/?p=240"},"modified":"2024-05-02T14:26:25","modified_gmt":"2024-05-02T14:26:25","slug":"%e7%94%b3%e8%af%b7lets-encrypt%e8%af%81%e4%b9%a6%e8%bf%87%e7%a8%8b%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"http:\/\/www.luluck.com\/index.php\/2024\/05\/02\/%e7%94%b3%e8%af%b7lets-encrypt%e8%af%81%e4%b9%a6%e8%bf%87%e7%a8%8b%e8%ae%b0%e5%bd%95\/","title":{"rendered":"\u7533\u8bf7let\u2018s encrypt\u8bc1\u4e66\u8fc7\u7a0b\u8bb0\u5f55"},"content":{"rendered":"\n<p>\u901a\u8fc7 snap\u5305\u7ba1\u7406\u5de5\u5177\u6765\u5b89\u88c5 Certbot\uff0c\u4ee5\u907f\u514d\u5176\u4ed6\u5305\u7ba1\u7406\u7cfb\u7edf\u4e0a\u53d1\u884c\u7684 Certbot \u56e0\u4e3a\u672a\u53ca\u65f6\u66f4\u65b0\u800c\u5b58\u5728\u95ee\u9898\u3002<\/p>\n\n\n\n<p>1.\u5b89\u88c5snapd\u5de5\u5177<\/p>\n\n\n\n<div class=\"is-layout-constrained wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<pre class=\"wp-block-code\"><code># apt update\n# apt install snapd\n# snap install core; snap refresh core\n# apt-get remove certbot<\/code><\/pre>\n\n\n\n<p>2.\u5b89\u88c5Certbot\u5de5\u5177<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># snap install --classic certbot\n# ln -s \/snap\/bin\/certbot \/usr\/bin\/certbot<\/code><\/pre>\n\n\n\n<p>\u7531\u4e8e\u7f51\u7ad9\u662f\u5229\u7528xray\u56de\u843d\u529f\u80fd\u518d\u5b9a\u5411http\u670d\u52a1\uff0c\u56e0\u6b64\u901a\u8fc7\u6821\u9a8c\u57df\u540d\u7684 TXT \u8bb0\u5f55\u6765\u9a8c\u8bc1\u4f60\u7533\u8bf7\u7684\u57df\u540d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># certbot certonly --manual \\\n    --preferred-challenges=dns \\\n    --email Mymail@gmail.com \\\n    --server https:\/\/acme-v02.api.letsencrypt.org\/directory \\\n    -d luluck.com -d www.luluck.com<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>\u00a0\u00a0<\/code><\/pre>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7 snap\u5305\u7ba1\u7406\u5de5\u5177\u6765\u5b89\u88c5 Certbot\uff0c\u4ee5\u907f\u514d\u5176\u4ed6\u5305\u7ba1\u7406\u7cfb\u7edf\u4e0a\u53d1\u884c\u7684 Certbot \u56e0\u4e3a\u672a&#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":[20],"_links":{"self":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/240"}],"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=240"}],"version-history":[{"count":1,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":241,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions\/241"}],"wp:attachment":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}