今天續(xù)期SSL證書的時候提示“upgrade your ACME client to support TLSv1.2 or better”,這一般是舊系統(tǒng)情況下TLS版本過低:acme.sh版本低于2.8所引起的,也就是提示:升級你的系統(tǒng)至 TLS 1.2 協(xié)議或更高版本。
但是國內(nèi)服務(wù)器無法訪問Github,所以總是升級失敗。本站也是實(shí)操多次,終于解決這個問題。以下詳細(xì)記錄過程:
首先,卸載 acme.sh
執(zhí)行以下命令卸載低版本的 acme.sh
acme.sh –uninstall
然后刪除 /root/.acme.sh 目錄
rm -rf /root/.acme.sh
安裝 acme.sh
安裝 acme.sh 之前我們需要先安裝必要的工具和依賴
yum install socat curl -y
執(zhí)行以下命令,安裝 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.
進(jìn)入 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
為:創(chuàng)建別名
alias acme.sh=~/.acme.sh/acme.sh
至此,acme.sh 全部安裝完成,在寶塔面板申請 SSL證書即可。
以上就是寶塔面板提示“upgrade your ACME client to support TLSv1.2 or better”的解決辦法,希望對大家有所幫助!