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
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 #1439
Comments
I have just hit this issue as well, trying to upgrade:
Trying to reinstall:
The error code: 35 is:
So, trying to just use
Editing the install script from https://get.acme.sh/ to add #!/usr/bin/env sh
#https://github.com/Neilpang/get.acme.sh
_exists() {
cmd="$1"
if [ -z "$cmd" ] ; then
echo "Usage: _exists cmd"
return 1
fi
if type command >/dev/null 2>&1 ; then
command -v $cmd >/dev/null 2>&1
else
type $cmd >/dev/null 2>&1
fi
ret="$?"
return $ret
}
if _exists curl && [ "${ACME_USE_WGET:-0}" = "0" ]; then
curl https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh | INSTALLONLINE=1 sh
elif _exists wget ; then
wget --no-check-certificate -O - https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh | INSTALLONLINE=1 sh
else
echo "Sorry, you must have curl or wget installed first."
echo "Please install either of them and try again."
fi And running that: bash ./get.acme.sh
...
[Fri Mar 23 11:52:54 GMT 2018] Installing from online archive.
[Fri Mar 23 11:52:54 GMT 2018] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Fri Mar 23 11:52:54 GMT 2018] Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code: 1
[Fri Mar 23 11:52:54 GMT 2018] Download error. So trying manually:
So basically this old server is too old for modern TLS, so I downloaded the latest version locally, SCP'd it to the server and:
And it has now installed. Hope this helps! |
FYI github has deprecated TLS v1 and 1.1 and only allows v1.2 |
Looks like the server I was trying to do this on is simply too old: acme.sh --issue -d example.org -w /var/www/
[Fri Mar 23 14:22:11 GMT 2018] Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code: 1
[Fri Mar 23 14:22:11 GMT 2018] Can not init api.
[Fri Mar 23 14:22:12 GMT 2018] Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code: 1
[Fri Mar 23 14:22:12 GMT 2018] Can not init api.
[Fri Mar 23 14:22:12 GMT 2018] Registering account
[Fri Mar 23 14:22:16 GMT 2018] Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code: 1
[Fri Mar 23 14:22:17 GMT 2018] Registered
[Fri Mar 23 14:22:17 GMT 2018] Can not find account id url.
[Fri Mar 23 14:22:17 GMT 2018]
[Fri Mar 23 14:22:17 GMT 2018] Please add '--debug' or '--log' to check more details.
[Fri Mar 23 14:22:17 GMT 2018] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh |
在6.5等centos下的curl默认不使用tls v1.2,导致源码下载失败,作者可否修改下下载命令使用wget而不是curl呢? @Neilpang |
@it-noob |
@chriscroome Thank you for your review! But |
@chriscroome so,Can you upgrade automatically? |
If yours OpenSSL is 1.0.1 or later - yes. Just type: |
curl https://get.acme.sh | sh
[2018年 03月 23日 星期五 10:20:36 UTC] Installing from online archive.
[2018年 03月 23日 星期五 10:20:36 UTC] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[2018年 03月 23日 星期五 10:20:36 UTC] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35
[2018年 03月 23日 星期五 10:20:36 UTC] Download error.
Platform: centos 7 x64
经测试添加 --tlsv1参数可以下载 https://github.com/Neilpang/acme.sh/archive/master.tar.gz
The text was updated successfully, but these errors were encountered: