Skip to content

https证书申请报错"Can not init api" #25

@yangli-learning

Description

@yangli-learning

安装脚本trojan_install.sh时出现:

0 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
[Thu Jan 19 04:26:19 EST 2023] Good, bash is found, so change the shebang to use bash as preferred.
[Thu Jan 19 04:26:22 EST 2023] OK
[Thu Jan 19 04:26:22 EST 2023] Install success!
[Thu Jan 19 04:26:33 EST 2023] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 60
[Thu Jan 19 04:26:33 EST 2023] Can not init api for: https://acme-v02.api.letsencrypt.org/directory.
[Thu Jan 19 04:26:33 EST 2023] Sleep 10 and retry.

该错误重复大约十次左右。最后显示https证书申请失败。

===================================
https证书没有申请成果,自动安装失败
不要担心,你可以手动修复证书申请
1. 重启VPS
2. 重新执行脚本,使用修复证书功能
===================================

通过ping测试注册的域名解析并没有问题。尝试重装或修复证书都会出现该错误。不知是否有人遇到过这个问题?

P.S curl.haxx.se/libcurl/c/libcurl-errors.html 的错误60是:

CURLE_PEER_FAILED_VERIFICATION (60)
The remote server's SSL certificate or SSH fingerprint was deemed not OK. This error code has been unified with CURLE_SSL_CACERT since 7.62.0. Its previous value was 51.

安装环境为CentOS7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions