简体   繁体   English

python是否要求证书验证在Windows上需要openssl

[英]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.

相关问题 openssl,python请求错误:“证书验证失败” - openssl, python requests error: “certificate verify failed” Python 请求证书验证在 Windows 上失败 - Python requests certificate verify failed on Windows 运行python的Windows Docker容器中的证书验证错误 - Certificate Verification Error in Windows Docker container running python python 请求中的 OpenSSL 错误 - OpenSSL errors in python requests Facebook图形GET请求使用python请求模块 - 证书验证失败 - Facebook graph GET request using python requests module- certificate verification failure 即使在添加CA证书之后,Python也会请求SSL证书验证失败 - Python requests SSL certificate verification fails, even after adding CA certificates 为什么使用 OpenSSL 客户端的消息 MAC 验证失败但使用 python-mbedtls 客户端成功 - Why does message MAC verification fail with an OpenSSL client but succeed with a python-mbedtls client python rfc3161验证失败但openssl验证没问题 - python rfc3161 verification failed but openssl verification is ok 在Windows上降级OpenSSL for Python - Downgrade OpenSSL for Python on Windows 使用PFX证书的Python请求将不起作用! -OpenSSL.SSL.Error:[('PEM例程']-是否需要PFX到PEM的转换? - Python Requests using PFX certificate wont work ! - OpenSSL.SSL.Error: [('PEM routines'] - PFX to PEM conversion necessary?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM