宝塔(aapanel)-SSL重要BUG提醒
人无远虑必有近忧……
宝塔面板在没有测试所有BUG的情况下,更新了面板,导致SSL文件无法更新,
TypeError: ECPrivateKey.sign() takes 2 positional arguments but 3 were given
REQUEST_DATE: 2024-12-02 15:56:22
VERSION: Debian GNU/Linux 12 x86_64(Py3.12.3) - 7.0.12
REMOTE_ADDR: ::1
REQUEST_URI: POST /site?action=SetSSL
REQUEST_FORM: {'type': '1', 'siteName': 'status.kunger.dev', 'key': '******', 'csr': '******'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2604, in publicObject
return run_exec().run(toObject, defs, get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/BTPanel/__init__.py", line 2550, in run
result = getattr(toObject, get.action)(get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class/panelSite.py", line 1512, in SetSSL
check_flag, check_msg = ssl_info.verify_certificate_and_key_match(get.key, get.csr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class/ssl_info.py", line 299, in verify_certificate_and_key_match
signature = private_key.sign(
^^^^^^^^^^^^^^^^^
TypeError: ECPrivateKey.sign() takes 2 positional arguments but 3 were given
所以建议不要 用官方的最新版
破解版推荐如下:
宝塔国际版去广告永久免费开心(破解版)非实名制安装
##安装宝塔面板##
Centos全新安装命令:根据系统执行框内命令开始安装(大约2分钟完成面板安装)升级后可能需要重启面板
yum install -y wget && wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh && sh install.sh
Ubuntu/Deepin全新安装命令:
wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh && sudo bash install.sh
Debian全新安装命令:
wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh && bash install.sh
建议大家使用Centos全新安装命令安装
只要系统不更新,就没那么多BUG