宝塔里面一键部署了,但无法用宝塔申请let's encrypt证书,提示“签发失败,域名解析错误,或解析未生效,或域名未北岸!”。
我的域名是freenom的免费域名,mcloud.ml,错误信息:
- {u'siteName': u'mcloud.ml', u'path': u'/www/server/panel/vhost/cert/mcloud.ml', u'DOMAINS': u'DNS:mcloud.ml', u'sitePath': u'/www/wwwroot/mcloud.ml/public'}
- Generate account key...
- Generate domain key...
- Generate CSR.../www/server/panel/vhost/cert/mcloud.ml/privkey.csr
- Parsing account key...
- Parsing CSR...
- Found domains: mcloud.ml
- Getting directory...
- Directory found!
- Registering account...
- Registered!
- Creating new order...
- Order created!
- Verifying mcloud.ml...
- Traceback (most recent call last):
- File "/www/server/panel/class/letsencrypt.py", line 233, in
- signed_crt = get_crt(ACCOUNT_KEY, DOMAIN_CSR, DOMAIN_DIR, ) ##########
- File "/www/server/panel/class/letsencrypt.py", line 170, in get_crt
- raise ValueError("Challenge did not pass for {0}: {1}".format(domain, authorization))
- ValueError: Challenge did not pass for mcloud.ml: {u'status': u'invalid', u'challenges': [{u'status': u'invalid', u'url': u'https://acme-v02.api.letsencrypt.org/acme/challenge/H_FOc8SYTNOmdvwdDRZw1SVXCl-e4ZLlm_I9TaLF3-g/17302500035', u'token': u'PZJa2r5NY24dZgGHoyEyn2onol46wa6RU1rRdpcsY4o', u'type': u'tls-alpn-01'}, {u'status': u'invalid', u'url': u'https://acme-v02.api.letsencrypt.org/acme/challenge/H_FOc8SYTNOmdvwdDRZw1SVXCl-e4ZLlm_I9TaLF3-g/17302500037', u'token': u'jJC6KyOAE***56pfc02oz7g-F118JWljFBJDUv-Np6B9c', u'type': u'dns-01'}, {u'status': u'invalid', u'validationRecord': [{u'url': u'http://mcloud.ml/.well-known/acme-challenge/atmlJbm_710e_uMaRDKHv6Wov0TtbNakzkF61LQFnxg', u'hostname': u'mcloud.ml', u'addressUsed': u'91.203.192.178', u'port': u'80', u'addressesResolved': [u'91.203.192.178']}], u'url': u'https://acme-v02.api.letsencrypt.org/acme/challenge/H_FOc8SYTNOmdvwdDRZw1SVXCl-e4ZLlm_I9TaLF3-g/17302500039', u'token': u'atmlJbm_710e_uMaRDKHv6Wov0TtbNakzkF61LQFnxg', u'error': {u'status': 403, u'type': u'urn:ietf:params:acme:error:unauthorized', u'detail': u'Invalid response from http://mcloud.ml/.well-known/acme-challenge/atmlJbm_710e_uMaRDKHv6Wov0TtbNakzkF61LQFnxg [91.203.192.178]: "\\r\\n\\r\\n\\r\\n
- 404 Not Found
- \\r\\n
- nginx
- \\r\\n"'}, u'type': u'http-01'}], u'identifier': {u'type': u'dns', u'value': u'mcloud.ml'}, u'expires': u'2019-06-27T13:07:50Z'}
复制代码
看样子是 .well-known 目录403、404?不懂,不知道是宝塔的问题,还是一键包的问题…… |