Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yangli-learning opened this issue Jan 19, 2023 · 0 comments
Open

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

yangli-learning opened this issue Jan 19, 2023 · 0 comments

Comments

@yangli-learning
Copy link

yangli-learning commented Jan 19, 2023

安装脚本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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant