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

 3080

关于宝塔面板提示“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

  1. acme.sh uninstall

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

  1. rm -rf /root/.acme.sh

安装 acme.sh

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

  1. yum install socat curl -y

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

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

提示以下信息,说明成功

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

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

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

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

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

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

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

为:创建别名

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

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

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


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

评论(0)条

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

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

    编辑推荐

    可爱的夏天元素矢量素材