{"id":819,"date":"2021-01-16T23:00:36","date_gmt":"2021-01-16T15:00:36","guid":{"rendered":"https:\/\/www.cith.ddnsfree.com:5444\/?p=819"},"modified":"2021-12-21T11:12:47","modified_gmt":"2021-12-21T03:12:47","slug":"%e6%97%a080%e7%ab%af%e5%8f%a3%e6%83%85%e5%86%b5%e4%b8%8b%e4%bd%bf%e7%94%a8-certbot-%e7%94%b3%e8%af%b7ssl%e8%af%81%e4%b9%a6-%e5%b9%b6%e5%ae%9e%e7%8e%b0%e8%87%aa%e5%8a%a8%e7%bb%ad%e6%9c%9f","status":"publish","type":"post","link":"https:\/\/blog.cithwu.com\/wp5444\/%e6%97%a080%e7%ab%af%e5%8f%a3%e6%83%85%e5%86%b5%e4%b8%8b%e4%bd%bf%e7%94%a8-certbot-%e7%94%b3%e8%af%b7ssl%e8%af%81%e4%b9%a6-%e5%b9%b6%e5%ae%9e%e7%8e%b0%e8%87%aa%e5%8a%a8%e7%bb%ad%e6%9c%9f\/","title":{"rendered":"\u65e080\u7aef\u53e3\u60c5\u51b5\u4e0b\u4f7f\u7528 CertBot \u7533\u8bf7SSL\u8bc1\u4e66\u53ca\u66f4\u65b0"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5b89\u88c5certbot<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">centos 7<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">yum install epel-release<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">yum install certbot<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ubuntu<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u5148\u5c1d\u8bd5\u6267\u884csudo apt-get install certbot \u770b\u662f\u5426\u80fd\u5b89\u88c5. \u5982\u679c\u63d0\u793a\u627e\u4e0d\u5230\u7684\u8bdd, \u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u540e\u518d\u5c1d\u8bd5\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo add-apt-repository -y ppa:certbot\/certbot\nsudo apt-get update\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u6267\u884csudo apt-get install certbot&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"DNS\u8ba4\u8bc1\">DNS\u8ba4\u8bc1<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">letsencrypt\u652f\u6301\u4f7f\u7528DNS\u8ba4\u8bc1\u7684\u65b9\u5f0f\u6765\u83b7\u53d6\u8bc1\u4e66\uff0c\u8fd9\u79cd\u65b9\u5f0f\u9700\u8981\u5728DNS\u91cc\u9762\u6dfb\u52a0TXT\u8bb0\u5f55\u6765\u8bc1\u660e\u57df\u540d\u662f\u4f60\u81ea\u5df1\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u79cd\u65b9\u5f0f\u53ea\u80fd\u4f7f\u7528certonly\u529f\u80fd\uff0c\u56e0\u6b64\u5b89\u88c5\u65f6\u9700\u8981\u81ea\u5df1\u4fee\u6539\u76f8\u5e94\u7684\u670d\u52a1\u5668\u914d\u7f6e\uff0c\u65e0\u6cd5\u8ba9certbot\u5e2e\u5fd9\u4fee\u6539\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ea\u9700\u8981\u8fd0\u884c\u4e00\u4e0b\u547d\u4ee4\u5373\u53ef\uff0c<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>certbot certonly --manual --preferred-challenge dns -d &lt;\u4f60\u7684\u57df\u540d&gt;<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u9996\u5148\u4f1a\u544a\u77e5\u4f60\u4f1a\u8bb0\u5f55\u4f60\u7684IP\uff0c\u9009\u62e9Y\uff0c\u63a5\u7740\u4f1a\u51fa\u73b0\u4e00\u4e2a\u63d0\u793a\uff0c\u8981\u4f60\u628a<code>_acme-challenge.&lt;\u4f60\u7684\u57df\u540d&gt;<\/code>\u8bbe\u7f6e\u6210TXT\u8bb0\u5f55\uff0c\u503c\u4e5f\u4f1a\u5199\u51fa\u6765\uff0c\u8bbe\u7f6e\u597d\u4ee5\u540e\u7b49\u5f85\u751f\u6548\u56de\u8f66\u5373\u53ef\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6210\u529f\u4ee5\u540e\uff0c\u5c31\u4f1a\u544a\u8bc9\u4f60\u8bc1\u4e66\u8def\u5f84\uff0c\u53ea\u9700\u8981\u66ff\u6362\u6389\u670d\u52a1\u5668\u7684\u914d\u7f6e\u91cc\u9762\u7684\u8bc1\u4e66\u5373\u53ef\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bc1\u4e66\u66f4\u65b0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo certbot certonly --renew-by-default -d YOURDOMAIN --manual --preferred-challenges dns<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5certbot centos&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,9],"tags":[],"class_list":["post-819","post","type-post","status-publish","format-standard","hentry","category-linux","category-9"],"_links":{"self":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/comments?post=819"}],"version-history":[{"count":8,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/819\/revisions"}],"predecessor-version":[{"id":998,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/819\/revisions\/998"}],"wp:attachment":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/media?parent=819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/categories?post=819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/tags?post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}