才华科技 发表于 2025-12-11 22:05:03

【已解答】面板升级到最新版后报错:v11.4.0 SSL报错

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:v11.4.0
系统版本:CentOS 7
问题描述:面板升级到最新版后报错:v11.4.0 SSL报错
相关截图(日志、错误):
REQUEST_DATE: 2025-12-11 22:04:18VERSION: CentOS7.9.2009 x86_64(Py3.7.9) - 11.4.0 REMOTE_ADDR: 113.120.123.241 REQUEST_URI: POST /acme?action=get_order_listTraceback (most recent call last):File "/www/server/panel/class/acme_v2.py", line 37, in <module>    import OpenSSLFile "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>    from OpenSSL import SSL, cryptoFile "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/SSL.py", line 15, in <module>    from cryptography import x509File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/x509/__init__.py", line 7, in <module>    from cryptography.x509 import certificate_transparency, verificationFile "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/x509/certificate_transparency.py", line 8, in <module>    from cryptography.hazmat.bindings._rust import x509 as rust_x509ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1517, in full_dispatch_request    rv = self.dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1503, in dispatch_request    return self.ensure_sync(self.view_functions)(**req.view_args)File "/home/server/panel/BTPanel/__init__.py", line 759, in acme    import acme_v2File "/www/server/panel/class/acme_v2.py", line 40, in <module>    import OpenSSLFile "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>    from OpenSSL import SSL, cryptoFile "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/SSL.py", line 15, in <module>    from cryptography import x509File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/x509/__init__.py", line 7, in <module>    from cryptography.x509 import certificate_transparency, verificationFile "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/x509/certificate_transparency.py", line 8, in <module>    from cryptography.hazmat.bindings._rust import x509 as rust_x509ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)

阿珂 发表于 2025-12-12 10:02:37

btpip install cryptography==42.0.5
bt 1
非面板终端执行
页: [1]
查看完整版本: 【已解答】面板升级到最新版后报错:v11.4.0 SSL报错