[英]Does python requests certificate verification require openssl on windows
I am using the requests library for my python client which talks to app servers. 我正在为与应用服务器通信的python客户端使用请求库。 I do not want to put the verify=false in the production version as it is blindly trusting. 我不想在生产版本中使用verify = false,因为它是盲目的信任。 I know that requests APIs support certificate verification. 我知道请求API支持证书验证。 http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification . http://docs.python-requests.org/zh_CN/latest/user/advanced/#ssl-cert-verification 。 But I am not able to find the required dependencies for the same. 但是我找不到相同的必需依赖项。 Is installing the openssl separately required on windows? 在Windows上是否需要单独安装openssl?
You do not need to install OpenSSL on Windows to get certificate verification with requests. 您无需在Windows上安装OpenSSL即可获得带有请求的证书验证。
Yes, OpenSSL is required, but OpenSSL is statically linked with the Python Windows binaries, so as long as the ssl
module is present in your Python install everything will work fine. 是的,OpenSSL是必需的,但OpenSSL与Python Windows二进制文件静态链接,因此,只要Python安装中存在ssl
模块,一切都将正常运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.