Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/291.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用请求库进行证书身份验证,了解如何以字节/流的形式读取证书,然后将其传入;“发送”;功能?_Python_Python 3.x_Ssl_Python Requests - Fatal编程技术网

Python 使用请求库进行证书身份验证,了解如何以字节/流的形式读取证书,然后将其传入;“发送”;功能?

Python 使用请求库进行证书身份验证,了解如何以字节/流的形式读取证书,然后将其传入;“发送”;功能?,python,python-3.x,ssl,python-requests,Python,Python 3.x,Ssl,Python Requests,Python使用请求库进行证书身份验证,但在会话中,证书只能通过路径传递。是否有任何方法可以将字节/流形式的证书传递到send的参数中,或者是否有其他库支持这种方法 我已经阅读了requests库的源代码,并试图找到解决问题的其他方法,但失败了。当然,我已经尝试找到其他库以字节/流的形式发送证书,但没有 verify='path/to/verify' certt='path/to/ceert' r=requests.Session.send(prepared(),cert=cert,verify

Python使用请求库进行证书身份验证,但在会话中,证书只能通过路径传递。是否有任何方法可以将字节/流形式的证书传递到send的参数中,或者是否有其他库支持这种方法

我已经阅读了requests库的源代码,并试图找到解决问题的其他方法,但失败了。当然,我已经尝试找到其他库以字节/流的形式发送证书,但没有

verify='path/to/verify'
certt='path/to/ceert'
r=requests.Session.send(prepared(),cert=cert,verify=verify)
“cert”或“vertify”是否可以是字节/流,而不仅仅是路径