关于宝塔面板提示“upgrade your ACME client to support TLSv1.2 or better”的解决办法

 940

关于宝塔面板提示“upgrade your ACME client to support TLSv1.2 or better”的解决办法


今天续期SSL证书的时候提示“upgrade your ACME client to support TLSv1.2 or better”,这一般是旧系统情况下TLS版本过低:acme.sh版本低于2.8所引起的,也就是提示:升级你的系统至 TLS 1.2 协议或更高版本。

但是国内服务器无法访问Github,所以总是升级失败。本站也是实操多次,终于解决这个问题。以下详细记录过程:

首先,卸载 acme.sh

执行以下命令卸载低版本的 acme.sh

acme.sh –uninstall

然后删除 /root/.acme.sh 目录

rm -rf /root/.acme.sh

安装 acme.sh

安装 acme.sh 之前我们需要先安装必要的工具和依赖

yum install socat curl -y

执行以下命令,安装 acme.sh

git clone https://gitee.com/bestHAI/acme.sh

提示以下信息,说明成功

Cloning into 'acme.sh'...
remote: Enumerating objects: 17074, done.
remote: Counting objects: 100% (17074/17074), done.
remote: Compressing objects: 100% (6498/6498), done.
remote: Total 17074 (delta 10552), reused 17074 (delta 10552), pack-reused 0
Receiving objects: 100% (17074/17074), 6.04 MiB | 1.46 MiB/s, done.
Resolving deltas: 100% (10552/10552), done.

进入 acme.sh 目录,并安装 acme.sh 

cd ./acme.sh
./acme.sh --install

提示以下信息,则表示安装成功。

Installing to /root/.acme.sh
Installed to /root/.acme.sh/acme.sh
Installing alias to '/root/.bashrc'
OK, Close and reopen your terminal to start using acme.sh
Installing alias to '/root/.cshrc'
Installing alias to '/root/.tcshrc'
Installing cron job
7 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
Good, bash is found, so change the shebang to use bash as preferred.
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35
OK

然后输入 ./acme.sh -v 查看版本号:

https://github.com/acmesh-official/acme.sh
v3.0.7

为:创建别名

alias acme.sh=~/.acme.sh/acme.sh

至此,acme.sh 全部安装完成,在宝塔面板申请 SSL证书即可。

以上就是宝塔面板提示“upgrade your ACME client to support TLSv1.2 or better”的解决办法,希望对大家有所帮助!


本文网址:https://www.zztuku.com/detail-14315.html
站长图库 - 关于宝塔面板提示“upgrade your ACME client to support TLSv1.2 or better”的解决办法
申明:如有侵犯,请 联系我们 删除。

评论(0)条

您还没有登录,请 登录 后发表评论!

提示:请勿发布广告垃圾评论,否则封号处理!!

    编辑推荐