宝塔证书申请失败 Invalid version. The only valid version for X509Req is 0

宝塔申请免费证书失败,提示 Invalid version. The only valid version for X509Req is 0

1 使用下面命令

btpip install pyOpenSSL==22.1.0
btpip install cffi==1.14

2

/www/server/panel/class/acme_v2.py
X509Req.set_version(2) 替换为 X509Req.set_version(0)

然后重启宝塔

添加新评论