{"id":33,"date":"2025-01-29T20:36:44","date_gmt":"2025-01-29T12:36:44","guid":{"rendered":"https:\/\/log.d9t3.com\/?p=33"},"modified":"2025-01-29T20:36:44","modified_gmt":"2025-01-29T12:36:44","slug":"lets-encrypt-renew%e5%87%ba%e7%8e%b0challenge-failed-for-domain-xxxx","status":"publish","type":"post","link":"https:\/\/log.d9t3.com\/?p=33","title":{"rendered":"Let\u2019s Encrypt renew\u51fa\u73b0\u201cChallenge failed for domain xxxx\u201d"},"content":{"rendered":"\n<p>\u67d0\u4e2a\u79c1\u7528\u7684\u5b50\u57df\u540d\u4e0a\u4e86Let\u2019s Encrypt\u7b7e\u53d1\u7684\u8bc1\u4e66\uff0c\u4e0a\u5468\u7528<code>renew<\/code>\u547d\u4ee4\u5ef6\u957f\u8bc1\u4e66\u6709\u6548\u671f\u65f6\u51fa\u73b0\u4e0b\u9762\u7684\u9519\u8bef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nProcessing \/etc\/letsencrypt\/renewal\/xxx.conf\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nCert is due for renewal, auto-renewing...\nPlugins selected: Authenticator standalone, Installer None\nRenewing an existing certificate\nPerforming the following challenges:\nhttp-01 challenge for xxxx\nWaiting for verification...\n----------------------------------------\nException happened during processing of request from ('::ffff:66.133.109.36', 45260, 0, 0)\nTraceback (most recent call last):\n  File \"\/usr\/lib64\/python2.7\/SocketServer.py\", line 295, in _handle_request_noblock\n    self.process_request(request, client_address)\n  File \"\/usr\/lib64\/python2.7\/SocketServer.py\", line 321, in process_request\n    self.finish_request(request, client_address)\n  File \"\/usr\/lib64\/python2.7\/SocketServer.py\", line 334, in finish_request\n    self.RequestHandlerClass(request, client_address, self)\n  File \"\/usr\/lib\/python2.7\/site-packages\/acme\/standalone.py\", line 207, in __init__\n    BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)\n  File \"\/usr\/lib64\/python2.7\/SocketServer.py\", line 651, in __init__\n    self.finish()\n  File \"\/usr\/lib64\/python2.7\/SocketServer.py\", line 710, in finish\n    self.wfile.close()\n  File \"\/usr\/lib64\/python2.7\/socket.py\", line 279, in close\n    self.flush()\n  File \"\/usr\/lib64\/python2.7\/socket.py\", line 303, in flush\n    self._sock.sendall(view&#91;write_offset:write_offset+buffer_size])\nerror: &#91;Errno 32] Broken pipe\n----------------------------------------\nChallenge failed for domain xxxx\nhttp-01 challenge for xxxx\nCleaning up challenges\nAttempting to renew cert (xxxx) from \/etc\/letsencrypt\/renewal\/xxxx.conf produced an unexpected error: Some challenges have failed.. Skipping.\nAll renewal attempts failed. The following certs could not be renewed:\n  \/etc\/letsencrypt\/live\/xxxx\/fullchain.pem (failure)\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\nAll renewal attempts failed. The following certs could not be renewed:\n  \/etc\/letsencrypt\/live\/xxxx\/fullchain.pem (failure)\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n1 renew failure(s), 0 parse failure(s)\n\nIMPORTANT NOTES:\n - The following errors were reported by the server:\n\n   Domain: xxxx\n   Type:   unauthorized\n   Detail: Invalid response from\n   http:&#47;&#47;xxxx\/.well-known\/acme-challenge\/vQ5zuvoh188fvC0GE8U5KnJ5yQMf1GamNzJCW-Ho-D8\n   &#91;xxx.xxx.xxx.xxx]: \"&lt;html&gt;\/n&lt;head&gt;\/n&lt;meta\n   http-equiv=\/\"Content-Type\/\" content=\/\"textml;charset=UTF-8\/\" \/&gt;\/n\n   &lt;style&gt;body{background-color:#FFFFFF}&lt;\/style&gt;\"\n\n   To fix these errors, please make sure that your domain name was\n   entered correctly and the DNS A\/AAAA record(s) for that domain\n   contain(s) the right IP address.\n<\/code><\/pre>\n\n\n\n<p>\u4e00\u76f4\u4ee5\u6765\u7528\u7684\u597d\u597d\u7684\uff0c\u8fd9\u6b21\u7a81\u7136\u6482\u6311\u5b50\u4e0d\u5e72\u4e86\uff0c\u7b80\u76f4\u83ab\u540d\u5176\u5999\u3002\u6839\u636e\u9519\u8bef\u4fe1\u606f\u6392\u67e5\u6f5c\u5728\u95ee\u9898\uff0c\u90fd\u6ca1\u6bdb\u75c5\uff1a<\/p>\n\n\n\n<ol>\n<li>ip\u5df2\u7ecf\u6b63\u786e\u89e3\u6790\uff0c\u9519\u8bef\u4fe1\u606f\u548clog\u4e2d\u53ef\u4ee5\u9a8c\u8bc1\u8fd9\u70b9\uff1b<\/li>\n\n\n\n<li>\u7ed1\u5b9a80\u7aef\u53e3\u4e5f\u6ca1\u95ee\u9898\uff0c\u5df2\u7ecf\u505c\u6b62\u4e86Nginx\uff1b<\/li>\n\n\n\n<li>certbot\u5df2\u7ecf\u5347\u7ea7\u5230\u4e86\u6700\u65b0\u7248\u672c\uff1b<\/li>\n\n\n\n<li>\u7528Python3.6\u7684pip\u91cd\u65b0\u5b89\u88c5certbot\u5e76\u5c1d\u8bd5\uff0c\u95ee\u9898\u4f9d\u65e7\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u81ea\u884c\u5c1d\u8bd5\u52a0\u4e0a\u7f51\u627e\u65b9\u6848\uff0c\u4e00\u756a\u6298\u817e\u65e0\u679c\u540e\u6682\u65f6\u653e\u5f03\u4e86\u3002\u5fc3\u60f3\u4e5f\u8bb8\u662f\u670d\u52a1\u7aef\u62bd\u98ce\uff0c\u8bf4\u4e0d\u5b9a\u8fc7\u51e0\u5929\u5c31\u597d\u4e86\u3002<\/p>\n\n\n\n<p>\u4eca\u5929\u518d\u6b21\u5c1d\u8bd5\u7eed\u671f\u8bc1\u4e66\uff0c\u8fd8\u662f\u540c\u6837\u7684\u95ee\u9898\u3002\u610f\u8bc6\u5230\u8fd9\u5e94\u8be5\u4e0d\u662f\u670d\u52a1\u7aef\u95ee\u9898\uff0c\u4e0d\u7136\u80af\u5b9a\u5f15\u8d77\u5927\u9762\u79ef\u53cd\u5e94\u4e86\uff0c\u914d\u7f6e\u6216\u8005\u4f7f\u7528\u4e0a\u6709\u65b0\u95ee\u9898\u7684\u53ef\u80fd\u6027\u66f4\u5927\u3002<\/p>\n\n\n\n<p>\u7528\u201dinvalid response\u201d\u7b49\u5173\u952e\u5b57\u641c\u4e0d\u51fa\u4ec0\u4e48\u6709\u7528\u7684\u7ed3\u679c\u3002\u8fc7\u4e86\u4e00\u4f1a\u540e\u5ffd\u7136\u60f3\u5230\u629b\u51fa\u5f02\u5e38\u4e2d\u7684&nbsp;<strong>\u201c::ffff:66.133.109.36\u201d<\/strong>&nbsp;\u8fd9\u4e2aip\u662f\u4ec0\u4e48\u73a9\u610f\uff1f\u590d\u5236ip\u4e0aGoogle\u67e5\u8be2\uff0c\u7adf\u7136\u76f4\u63a5\u627e\u5230\u4e86\u95ee\u9898\u539f\u56e0\uff1a\u7528\u4e8e\u9a8c\u8bc1\u57df\u540d\u768480\u7aef\u53e3\u88ab\u963f\u91cc\u4e91\u62e6\u622a\u4e86\uff0ccertbot\u6536\u5230\u7684\u8fd4\u56de\u4e0e\u9884\u671f\u4e0d\u7b26\u5408\uff0c\u4e8e\u662f\u63d0\u793a\u201cchallenge failed for domain xxxx\u201d\u7684\u9519\u8bef\u3002\u81f3\u4e8e\u8fd9\u4e2aip\uff0c\u5e94\u8be5\u662f\u963f\u91cc\u4e91\u4e0a\u5c42\u9632\u706b\u5899\u7684\u516c\u5171ip\u3002<\/p>\n\n\n\n<p>\u63a5\u7740\u81ea\u5df1\u5c1d\u8bd5\u752880\u7aef\u53e3\u8bbf\u95ee\u57df\u540d\uff0c\u679c\u7136\u51fa\u73b0\u62e6\u622a\u7684\u9875\u9762\uff0c\u753b\u98ce\u5982\u4e0b\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/ssrvps.org\/wp-content\/uploads\/2020\/04\/20200421_5e9f1894ebe32.jpg\" alt=\"\u57df\u540d\u62e6\u622a\u63d0\u793a\" class=\"wp-image-5418\"\/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/ssrvps.org\/wp-content\/uploads\/2020\/04\/20200421_5e9f189705f55.jpg\"><img decoding=\"async\" src=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/06\/yumingtishi.jpg\" alt=\"\u57df\u540d\u62e6\u622a\u63d0\u793a\" class=\"wp-image-5418\"\/><\/a><\/figure><\/div>\n\n\n<p>\u77e5\u9053\u4e86\u95ee\u9898\u7684\u539f\u56e0\uff0c\u627e\u89e3\u51b3\u529e\u6cd5\u8fd8\u662f\u633a\u5bb9\u6613\u7684\u3002\u4e2a\u4eba\u80fd\u60f3\u5230\u7684\u89e3\u51b3\u529e\u6cd5\u6709\u4e09\u79cd\uff1a<\/p>\n\n\n\n<ol>\n<li>\u57df\u540d\u5907\u6848\uff1b\u8fd9\u4e2a\u4e0d\u7528\u8bf4\u4e86\u5427\uff0c\u8bf4\u591a\u4e86\u4e5f\u4e0d\u597d\uff1b<\/li>\n\n\n\n<li>\u6682\u65f6\u5c06\u57df\u540d\u89e3\u6790\u5230\u5883\u5916\u670d\u52a1\u5668\uff0c\u83b7\u53d6\u5230\u8bc1\u4e66\u66f4\u65b0\u540e\u518d\u89e3\u6790\u56de\u6765\uff1b<\/li>\n\n\n\n<li>\u57df\u540d\u9a8c\u8bc1\u4ecehttp\u6539\u6210dns\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u524d\u4e24\u4e2a\u529e\u6cd5\u6bd4\u8f83\u7b80\u5355\uff0c\u672c\u6587\u4e0d\u518d\u591a\u8bf4\u3002\u8fd9\u91cc\u8bf4\u4e00\u4e0b\u7528dns\u65b9\u5f0f\u9a8c\u8bc1\u57df\u540d\u7684\u6b65\u9aa4\u3002<\/p>\n\n\n\n<p>dns\u9a8c\u8bc1\u6709\u4e24\u4e2a\u91cd\u8981\u53c2\u6570:<\/p>\n\n\n\n<ul>\n<li>\u2013preferred-challenges\uff0c\u9a8c\u8bc1\u65b9\u5f0f\uff0c\u586b\u5199dns\u6216dns-01;<\/li>\n\n\n\n<li>\u2013server, \u9a8c\u8bc1\u670d\u52a1\u5668\uff0c\u586b\u5199https:\/\/acme-v02.api.letsencrypt.org\/directory<\/li>\n<\/ul>\n\n\n\n<p>\u8fd8\u6709\u4e00\u4e2a<code>--manual<\/code>\u53c2\u6570\uff0c\u4f46\u5728\u201c\u975e\u4ea4\u4e92\u5f0f\u201d\u73af\u5883\u4e0b\uff0c\u5fc5\u987b\u540c\u65f6\u6307\u5b9a<code>--manual-auth-hook<\/code>\u9009\u9879\u3002\u4ec0\u4e48\u662f\u201c\u975e\u4ea4\u4e92\u5f0f\u201d\u73af\u5883\uff1f<code>renew<\/code>\u5c31\u662f\u975e\u4ea4\u4e92\u5f0f\u73af\u5883\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u5916\u90e8\u8f93\u51fa\u548c\u53c2\u4e0e\uff1b\u800c<code>certonly<\/code>\uff08\u4e00\u822c\uff09\u662f\u4ea4\u4e92\u5f0f\u7684\uff0c\u56e0\u4e3a\u6267\u884c\u8fc7\u7a0b\u4e2d\u9700\u8981\u7528\u6237\u8f93\u5165\u5fc5\u8981\u7684\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u672c\u4eba\u6ca1\u770b<code>auth-hook<\/code>\u811a\u672c\u7684\u5199\u6cd5\uff0c\u6240\u4ee5\u7528dns\u65b9\u5f0f<code>renew<\/code>\u8bc1\u4e66\u662f\u4e0d\u53ef\u884c\u4e86\u3002\u90a3\u5c31\u5e72\u8106\u91cd\u65b0\u518d\u83b7\u53d6\u4e00\u6b21\u8bc1\u4e66\u5427\uff01\u8f93\u5165\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p><code>certbot certonly -d \u57df\u540d --preferred-challenges dns --manual --server https:\/\/acme-v02.api.letsencrypt.org\/directory<\/code><\/p>\n\n\n\n<p>\u547d\u4ee4\u4f1a\u8be2\u95ee\u662f\u5426\u540c\u610f\u8bb0\u5f55\u5f53\u524d\u673a\u5668\u7684ip\uff0c\u5fc5\u9009\u201cy\u201d\uff08\u9009n\u4f1a\u5bfc\u81f4\u811a\u672c\u9000\u51fa\uff09\u3002\u63a5\u7740\u547d\u4ee4\u4f1a\u8f93\u51fadns\u8bb0\u5f55\u7684\u9a8c\u8bc1\u4fe1\u606f\uff0c\u6309\u7167\u6307\u5b9a\u503c\u5728dns\u63a7\u5236\u53f0\u52a0\u4e0a&nbsp;<strong>TXT<\/strong>&nbsp;\u8bb0\u5f55\u3002dns\u8bb0\u5f55\u6dfb\u52a0\u5b8c\u6210\u540e\u7b49\u534a\u5206\u949f\u5de6\u53f3\u8ba9\u8bb0\u5f55\u751f\u6548\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\uff0c\u8bb0\u5f55\u65e0\u8bef\u7684\u8bdd\u8bc1\u4e66\u5c31\u751f\u6210\u4e86\u3002<\/p>\n\n\n\n<p>\u611f\u8c22\u4f1f\u5927\u7684\u9632\u706b\u5899\u548c\u5907\u6848\u673a\u5236\uff0c\u53c8\u8ba9\u6211\u957f\u89c1\u8bc6\u4e86\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003<\/h2>\n\n\n\n<ol>\n<li><a href=\"https:\/\/community.letsencrypt.org\/t\/invalid-response-use-certbot-in-ubuntu\/72818\/17\">Invalid response use certbot in ubuntu<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.hi-linux.com\/posts\/6968.html\">Let\u2019s Encrypt \u514d\u8d39\u901a\u914d\u7b26 SSL \u8bc1\u4e66\u7533\u8bf7\u6559\u7a0b<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u67d0\u4e2a\u79c1\u7528\u7684\u5b50\u57df\u540d\u4e0a\u4e86Let\u2019s Encrypt\u7b7e\u53d1\u7684\u8bc1\u4e66\uff0c\u4e0a\u5468\u7528renew\u547d\u4ee4\u5ef6\u957f\u8bc1\u4e66\u6709\u6548\u671f\u65f6\u51fa\u73b0\u4e0b\u9762\u7684\u9519\u8bef\uff1a<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"https:\/\/log.d9t3.com\/?p=33\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/posts\/33"}],"collection":[{"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":1,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":34,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions\/34"}],"wp:attachment":[{"href":"https:\/\/log.d9t3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}