当前位置:   article > 正文

成功解决RuntimeError: OpenSSL 3.0‘s legacy provider failed to load

成功解决RuntimeError: OpenSSL 3.0‘s legacy provider failed to load

报错

RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.

解决办法

OpenSSL 3.0加载失败: 此错误表明 cryptography 库试图加载OpenSSL 3.0的遗留提供程序,但失败了。错误建议通过设置环境变量 CRYPTOGRAPHY_OPENSSL_NO_LEGACY 来禁用遗留算法。如果你不需要使用遗留算法,可以通过以下方式在运行脚本之前设置环境变量:

export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1
  • 1

或者,如果你确实需要遗留算法,这可能表明你的OpenSSL配置有误。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/268327
推荐阅读
相关标签
  

闽ICP备14008679号