2019年11月開始,陸續發現AMH4.2.1中SSL證書無法正常獲取證書了,包括使用命令行渠道也無法獲取證書。
嘗試生成會有如下提示:
Register account Error: {“type”:“urn:acme:error:unauthorized”,“detail”:“Account creation on ACMEv1 is disabled.
Please upgrade your ACME client to a version that supports ACMEv2 / RFC 8555.
See https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430 for details.”,“status”: 403}
[Fri Nov 15 02:29:17 UTC 2019] Please add ‘–debug’ or ‘–log’ to check more details.
原來LET’S ENCRYPT官方在2019年11月將終止V1證書的注冊了。
如何判斷自己用的是V1還是V2,或是否已升級到V2?
在SSH中執行以下命令
cat /root/.acme.sh/acme.sh | grep VER=
若顯示是2.7.3則表示是V1
若是2.8.*或以上則表示是V2
解決辦法
在SSH中執行以下命令,完成獲取證書的腳本更新即可。
/root/.acme.sh/acme.sh --upgrade