{"id":891,"date":"2024-06-05T20:35:14","date_gmt":"2024-06-05T12:35:14","guid":{"rendered":"https:\/\/cn.raksmart.com\/blog\/host\/4187.html"},"modified":"2024-06-05T20:35:14","modified_gmt":"2024-06-05T12:35:14","slug":"txt%e8%ae%b0%e5%bd%95%e4%b8%8essl%e8%af%81%e4%b9%a6%e7%9a%84%e5%85%b3%e7%b3%bb","status":"publish","type":"post","link":"https:\/\/cn.raksmart.com\/blog\/server\/891.html","title":{"rendered":"TXT\u8bb0\u5f55\u4e0eSSL\u8bc1\u4e66\u7684\u5173\u7cfb"},"content":{"rendered":"<div class=\"entry-content e-content\" itemprop=\"description articleBody\">\n<p>DNS\u4e2d\u7684TXT\u8bb0\u5f55\u548c\u5f3a\u5236<strong><a href=\"https:\/\/cn.raksmart.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"SSL\u8bc1\u4e66\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\">SSL\u8bc1\u4e66<\/a><\/strong>\u7684\u5173\u7cfb<\/p>\n<p>\u5728\u542f\u7528\u4e86Sectigo\u7684\u5168\u7ad9SSL\u540e\uff0c\u4f1a\u81ea\u52a8\u7684\u5728DNS\u8bbe\u7f6e\u5185\u6dfb\u52a0\u4e00\u4e2aTXT\u8bb0\u5f55\uff0e\u7c7b\u4f3c<\/p>\n<p>TXT-Record:<br \/>\n201709070554452mwbv8q0pk9py5r8qongpqm7wudpnjtayd66rgjbn9jpemdnzi<\/p>\n<p>\u8fd9\u6837\u6240\u6709\u7684\u8bf7\u6c42\u4f1a\u88ab\u8f6c\u5230\u4e0d\u662fA\u8bb0\u5f55\u5185\u6307\u5b9a\u7684IP\u5730\u5740\u4e86\uff0e<\/p>\n<p>\u4f46\u662f\uff0c\u5982\u679c\u4f60\u53d6\u6d88SSL\u540e\uff0c\u8fd9\u4e2aTXT\u8bb0\u5f55\u4e0d\u4f1a\u81ea\u52a8\u6d88\u9664\uff0e\u9020\u6210\u6307\u5411\u9519\u8bef\uff0e\u6e05\u9664\u8fd9\u4e2aTXT\u8bb0\u5f55\u540e\uff0c\u6545\u969c\u6d88\u5931<\/p>\n<p>Letsencrypt\u901a\u8fc7DNS TXT\u8bb0\u5f55\u6765\u9a8c\u8bc1\u57df\u540d\u6709\u6548\u6027<\/p>\n<p>\u6211\u4eec\u5728\u4f7f\u7528letsencrypt\u83b7\u53d6\u514d\u8d39\u7684HTTPS\u8bc1\u4e66\u7684\u65f6\u5019\uff0cletsencrypt\u9700\u8981\u5bf9\u57df\u540d\u8fdb\u884c\u9a8c\u8bc1\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5b83\u7684\u9a8c\u8bc1\u65b9\u5f0f\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<p>certbot\u7a0b\u5e8f\u5728web\u76ee\u5f55\u7684\u6839\u76ee\u5f55\u4e0b\u653e\u7f6e\u4e00\u4e2a\u6587\u4ef6\u3002<\/p>\n<p>letsencrypt\u7684<strong><a href=\"https:\/\/cn.raksmart.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u72ec\u7acb\u670d\u52a1\u5668\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\">\u72ec\u7acb\u670d\u52a1\u5668<\/a><\/strong>\u901a\u8fc7\u57df\u540d\u6765\u8bbf\u95ee\u8fd9\u4e2a\u6587\u4ef6\uff0c\u6765\u9a8c\u8bc1\u4f60\u7533\u8bf7\u7684\u57df\u540d\u662f\u5c5e\u4e8e\u4f60\u7684<\/p>\n<p>\u4f46\u6709\u65f6\u5019\u6211\u4eec\u60f3\u4e3a\u5185\u7f51\u7684\u67d0\u53f0\u4e3b\u673a\u8bbe\u7f6eHTTPS\uff0c\u56e0\u4e3a\u5185\u7f51\u7684\u4e3b\u673a\u65e0\u6cd5\u88abletsencrypt\u7684\u670d\u52a1\u5668\u8bbf\u95ee\u5230\uff0ccertbot<br \/>\n\u2013nginx certonly\u5c31\u4f1a\u51fa\u73b0Connection refused\u7684\u9519\u8bef\u3002<\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u4e0a\u8ff0\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u6539\u9a8c\u8bc1\u65b9\u5f0f\uff0c\u4f7f\u7528DNS\u8bb0\u5f55\u6765\u9a8c\u8bc1\u57df\u540d\u3002<\/p>\n<p>\u5229\u7528certbot\u83b7\u53d6\u8bc1\u4e66   \u66f4\u591a\u76f8\u5173\u5185\u5bb9\u8bf7\u9605\u8bfb\uff1a<a href=\"https:\/\/cn.raksmart.com\/blog\/knowledge\/819.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u514d\u8d39SSL\u8bc1\u4e66\u548c\u4ed8\u8d39SSL\u8bc1\u4e66\u7684\u533a\u522b\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\">\u514d\u8d39SSL\u8bc1\u4e66\u548c\u4ed8\u8d39SSL\u8bc1\u4e66\u7684\u533a\u522b<\/a><\/p>\n<p>\u8fd0\u884csudo certbot \u2013manual<br \/>\n\u2013preferred-challenges dns certonly\u547d\u4ee4\uff0c\u8f93\u5165\u57df\u540d\u5e76\u540c\u610f\u8bb0\u5f55\u672c\u673aIP\u540e\u5f00\u59cb\u83b7\u53d6\u8bc1\u4e66\uff0c\u63a5\u7740certbot\u5c31\u4f1a\u5f39\u51fa\u5982\u4e0b\u7684\u63d0\u793a\uff1a<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014-<\/p>\n<p>Please deploy a DNS TXT record under the<br \/>\nname<\/p>\n<p>_acme-challenge.example.com with the<br \/>\nfollowing value:<\/p>\n<p>IMdfdsfsJDqBRyRaaEgPPQlEuvtxJQAgWZTIVbLuzDi8U<\/p>\n<p>Once this is deployed,<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014-<\/p>\n<p>Press Enter to Continue<\/p>\n<p>\u6b64\u65f6certbot\u7a0b\u5e8f\u5c31\u4f1a\u6682\u505c\uff0c\u7b49\u5f85\u6211\u4eec\u53bb\u6dfb\u52a0DNS\u8bb0\u5f55\u3002<\/p>\n<p>\u6dfb\u52a0DNS\u7684TXT\u8bb0\u5f55<\/p>\n<p>\u770b\u5230\u4e0a\u8ff0\u7684\u63d0\u793a\u540e\uff0c\u4fee\u6539\u57df\u540d\u7684DNS\u8bb0\u5f55\uff0c\u6dfb\u52a0\u4e00\u6761TXT\u8bb0\u5f55\uff0c\u4e3b\u673a\u540d\u4e3a_acme-challenge\uff0c\u800c\u5176\u4e2d\u7684\u5185\u5bb9\u5c31\u662fletsencrypt\u751f\u6210\u7684\u968f\u673a\u5b57\u7b26\u4e32IMdfdsfsJDqBRyRaaEgPPQlEuvtxJQAgWZTIVbLuzDi8U\u3002<\/p>\n<p>\u9a8c\u8bc1\u6210\u529f<\/p>\n<p>\u6dfb\u52a0\u597dDNS\u8bb0\u5f55\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7dig -t txt _acme-challenge.example.com\u6765\u67e5\u770b\u57df\u540d\u7684\u5185\u5bb9\uff0c\u57df\u540d\u751f\u6548\u4ee5\u540e\uff0c\u5728certbot\u7a0b\u5e8f\u4e2d\u4e0b\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u7a0b\u5e8f\u7ee7\u7eed\u8fd0\u884c\u3002letsencrypt\u5bf9DNS\u8bb0\u5f55\u9a8c\u8bc1\u6210\u529f\uff0c\u8bc1\u4e66\u5c31\u7533\u8bf7\u6210\u529f\u4e86\u3002 \u66f4\u591a\u7684\u76f8\u5173\u5185\u5bb9\u53ef\u4ee5\u9605\u8bfb\uff1a\u00a0 \u00a0<a href=\"https:\/\/cn.raksmart.com\/blog\/website\/seo\/701.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\">SSL\u8bc1\u4e66\u7684\u7c7b\u578b\u6709\u54ea\u4e9b<\/a>  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>DNS\u4e2d\u7684TXT\u8bb0\u5f55\u548c\u5f3a\u5236SSL\u8bc1\u4e66\u7684\u5173\u7cfb \u5728\u542f\u7528\u4e86Sectigo\u7684\u5168\u7ad9SSL\u540e\uff0c\u4f1a\u81ea\u52a8\u7684\u5728DNS\u8bbe\u2026 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,9],"tags":[819],"class_list":["post-891","post","type-post","status-publish","format-standard","hentry","category-ssl","category-server","tag-ssl"],"_links":{"self":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/comments?post=891"}],"version-history":[{"count":0,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/891\/revisions"}],"wp:attachment":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/media?parent=891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/categories?post=891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/tags?post=891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}