Coding Pages 申请 SSL 证书错误:urn:acme:error:unauthorized: Invalid response from http://xxxxx/


Coding Pages 申请 SSL/TLS 安全证书出现以下错误:

urn:acme:error:unauthorized: Invalid response from http://www.xxxx.cn/.well-known/acme-challenge/ysOz9wW3U_GFPP8kRP4w8uknBZ9UfiUT7t2xpu9pDCw [185.199.111.153]: "\n\n \n <meta http-equiv=“Content-type” content=“text/html; charset=utf-8”>\n <meta http-equiv=“Co”

01

原因分析:这种错误一般是 hexo 博客双线部署到 GitHub Pages 和 Coding Pages 过程中出现的,并且已经在域名 DNS 配置好了 GitHub 的域名解析,这种情况下,在验证域名所有权时会定位到 Github Pages 的主机上导致 SSL 证书申请失败

解决方法:先去域名 DNS 把 GitHub 的解析暂停掉,然后再重新申请 SSL 证书,等待申请成功再恢复 GitHub 的解析

TRHX • 鲍勃 CSDN认证博客专家 CSDN博客专家 网络爬虫工程师 高校俱乐部主席
个人博客:www.itrhx.com,Python 网络爬虫工程师,专攻数据挖掘、数据分析,数据可视化领域,Golang、前端以及开源技术爱好者,一入 IT 深似海,从此学习无绝期!求知若饥,虚心若愚,只谈技术,莫问前程!注重细节,用心写好文!
已标记关键词 清除标记
<div><p>What might be causing this error?</p> <p>The diagnostics test provided in /docs/troubleshooting.md passes. See below.</p> <p>The config file is using staging CA, per staging.md Here is complete history of latest attempt: <code>[letsencrypt ~]$ bash dehydrated/dehydrated -c -f /home/letsencrypt/config</code> <code># INFO: Using main config file /home/letsencrypt/config Processing or97.net + Signing domains... + Generating private key... + Generating signing request... + Requesting challenge for or97.net... + Responding to challenge for or97.net... ERROR: Challenge is invalid! (returned: invalid) (result: { "type": "http-01", "status": "invalid", "error": { "type": "urn:acme:error:unauthorized", "detail": "Invalid response from http://or97.net/.well-known/acme-challenge/VuYLOVM67NO_vVlYmbQYyBJcUVnNhEUhrIPS7auZjM8 [188.227.186.70]: 404", "status": 403 }, "uri": "https://acme-staging.api.letsencrypt.org/acme/challenge/ScDB3W7f9fcLmt_8s3waNELOY9sJ1QInzkR0nkEeKeI/19674597", "token": "VuYLOVM67NO_vVlYmbQYyBJcUVnNhEUhrIPS7auZjM8", "keyAuthorization": "VuYLOVM67NO_vVlYmbQYyBJcUVnNhEUhrIPS7auZjM8.SjR9lX0eFmmOyCAllb43DCesuKnhj7ocuE0buM6iZIY", "validationRecord": [ { "url": "http://or97.net/.well-known/acme-challenge/VuYLOVM67NO_vVlYmbQYyBJcUVnNhEUhrIPS7auZjM8", "hostname": "or97.net", "port": "80", "addressesResolved": [ "188.227.186.70" ], "addressUsed": "188.227.186.70" } ] })</code> I created a replica file using the same user. Here's the results:</p> <p><code>$ telnet or97.net 80</code> `Trying 188.227.186.70... Connected to or97.net. Escape character is '^]'. GET .well-known/acme-challenge/VuYLOVM67NO_vVlYmbQYyBJcUVnNhEUhrIPS7auZjM8 HTTP/1.1 Host: or97.net</p> <p>HTTP/1.1 200 OK Server: NaviServer/4.99.12 Date: Thu, 05 Jan 2017 04:21:30 GMT Set-Cookie: ad_user_login=""; Expires=Fri, 01-Jan-1980 01:00:00 GMT; Path=/ Set-Cookie: ad_secure_token=""; Expires=Fri, 01-Jan-1980 01:00:00 GMT; Path=/; Secure Set-Cookie: ad_user_login_secure=""; Expires=Fri, 01-Jan-1980 01:00:00 GMT; Path=/; Secure Set-Cookie: ad_session_id="78360046%252c0%252c0%252c1483590090%2b%257b874%2b1483591290%2bD68F6CFD05A841A5AD4F1DBAEF4E4CD3BF33DDB1%257d"; Expires=Fri, 01-Jan-2035 01:00:00 GMT; Path=/; Discard; HttpOnly Last-Modified: Thu, 05 Jan 2017 03:54:55 GMT Content-Type: <em>/</em> Accept-Ranges: bytes Content-Length: 8 Connection: keep-alive</p> <p>success Connection closed by foreign host. `</p><p>该提问来源于开源项目:dehydrated-io/dehydrated</p></div>
©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页