a346709127 发表于 2023-3-26 00:54:15

军哥今天证书续签 出现这个错误


Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
Can not init api for: https://acme-v02.api.letsencrypt.org/directory.
Sleep 10 and retry.
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
Can not init api for: https://acme-v02.api.letsencrypt.org/directory.
Sleep 10 and retry.
Using CA: https://acme-v02.api.letsencrypt.org/directory
Multi domain='DNS:www.XXX.com,XXX.com'
Getting domain auth token for each domain
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
Getting webroot for domain='www.XXX.com'
Getting webroot for domain='XXX.com'
get to authz error.
_authorizations_map=',
www.XXX.com,{"identifier":{"type":"dns","value":"www.XXXX.com"},"status":"pending","expires":"2023-04-01T16:50:02Z","challenges":[{"type":"http-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/213932333847/d-HmrQ","token":"EsdxqgS1p4BJwe81o2xZAuAY3vo94OH4TP1QpSkr0pM"},{"type":"dns-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/213932333847/vRixWw","token":"EsdxqgS1p4BJwe81o2xZAuAY3vo94OH4TP1QpSkr0pM"},{"type":"tls-alpn-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/213932333847/KPqt8g","token":"EsdxqgS1p4BJwe81o2xZAuAY3vo94OH4TP1QpSkr0pM"}]}

a346709127 发表于 2023-3-26 01:15:02

有的又续签 成功 有几个又不成功

a346709127 发表于 2023-3-26 01:22:33

di='/usr/local/nginx/conf/ssl/www.XXXX.com/'
d='www.XXXX.com'
Using config home:/usr/local/acme.sh
ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
DOMAIN_PATH='/usr/local/nginx/conf/ssl/www.XXXX.com'
Renew: 'www.XXXX.com'
Le_API='https://acme-v02.api.letsencrypt.org/directory'
Using config home:/usr/local/acme.sh
ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
_main_domain='www.XXXX.com'
_alt_domains='XXXX.com'
Le_NextRenewTime='1678690076'
Using ACME_DIRECTORY: https://acme-v02.api.letsencrypt.org/directory
_init api for server: https://acme-v02.api.letsencrypt.org/directory
GET
url='https://acme-v02.api.letsencrypt.org/directory'
timeout=
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g '
ret='0'
ACME_KEY_CHANGE='https://acme-v02.api.letsencrypt.org/acme/key-change'
ACME_NEW_AUTHZ
ACME_NEW_ORDER='https://acme-v02.api.letsencrypt.org/acme/new-order'
ACME_NEW_ACCOUNT='https://acme-v02.api.letsencrypt.org/acme/new-acct'
ACME_REVOKE_CERT='https://acme-v02.api.letsencrypt.org/acme/revoke-cert'
ACME_AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf'
ACME_NEW_NONCE='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
Using CA: https://acme-v02.api.letsencrypt.org/directory
_on_before_issue
_chk_main_domain='www.XXXX.com'
_chk_alt_domains='XXXX.com'
Le_LocalAddress
d='www.XXXX.com'
Check for domain='www.XXXX.com'
_currentRoot='/home/wwwroot/www.XXXX.com'
d='XXXX.com'
Check for domain='XXXX.com'
_currentRoot='/home/wwwroot/www.XXXX.com'
d
_saved_account_key_hash is not changed, skip register account.
Read key length:
_createcsr
Multi domain='DNS:www.XXXX.com,DNS:XXXX.com'
Getting domain auth token for each domain
d='XXXX.com'
d
url='https://acme-v02.api.letsencrypt.org/acme/new-order'
payload='{"identifiers": [{"type":"dns","value":"www.XXXX.com"},{"type":"dns","value":"XXXX.com"}]}'
RSA key
HEAD
_post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g-I'
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
_ret='6'
GET
url='https://acme-v02.api.letsencrypt.org/directory'
timeout=
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g '
ret='0'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/new-order'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L-g '
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
_ret='6'
code
Le_LinkOrder
Le_OrderFinalize
Create new order error. Le_OrderFinalize not found.
pid
No need to restore nginx, skip.
_clearupdns
dns_entries
skip dns.
_on_issue_err
Please check log file for more details: /usr/local/acme.sh/acme.sh.log
Return code: 1
Error renew www.XXXX.com.

a346709127 发表于 2023-3-26 10:15:27

目前只看到Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6 这个提示错误

但是网站都是正常访问没有出现任何问题……具体可以麻烦军哥 看看吗~

a346709127 发表于 2023-3-26 10:31:14

这个提示是说Could not resolve host. The given remote host was not resolved. 无法解析主机。未解析给定的远程主机

但是机器都是正常访问,实在是搞不懂哪里出问题了

a346709127 发表于 2023-3-26 10:39:24

"/usr/local/acme.sh"/acme.sh --cron --home "/usr/local/acme.sh"使用的是这个指令自动续签

a346709127 发表于 2023-3-26 11:00:15

64 bytes from 172.65.32.248: icmp_seq=1 ttl=58 time=265 ms
64 bytes from 172.65.32.248: icmp_seq=2 ttl=58 time=238 ms
64 bytes from 172.65.32.248: icmp_seq=3 ttl=58 time=255 ms
64 bytes from 172.65.32.248: icmp_seq=4 ttl=58 time=207 ms
64 bytes from 172.65.32.248: icmp_seq=5 ttl=58 time=284 ms
64 bytes from 172.65.32.248: icmp_seq=6 ttl=58 time=302 ms
64 bytes from 172.65.32.248: icmp_seq=7 ttl=58 time=307 ms
64 bytes from 172.65.32.248: icmp_seq=8 ttl=58 time=320 ms
64 bytes from 172.65.32.248: icmp_seq=10 ttl=58 time=315 ms
64 bytes from 172.65.32.248: icmp_seq=11 ttl=58 time=302 ms

服务器上 ping acme-v02.api.letsencrypt.org也是正常访问的

licess 发表于 2023-3-26 11:27:43

Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
这个error code: 6 错误是域名无法正常解析

域名没法解析的话肯定是无法访问到续期服务器进行续期操作的

机器访问用不到解析,你网站的访问也不是用的你机器上的dns解析,检查你服务器上的dns设置,看一下你机器上用dns是否可用解析 acme-v02.api.letsencrypt.org 的域名

a346709127 发表于 2023-3-26 11:45:24

已经解决啦,谢谢军哥
页: [1]
查看完整版本: 军哥今天证书续签 出现这个错误