Skip to content
Advertisement

Python requests trust certificate in cer-file

I got such certificate :

certificate.base64.cer

JavaScript

And I want to send request using it

api.py

JavaScript

but I get

JavaScript

How to fix that? What is wrong?

Advertisement

Answer

Python requests trust certificate in cer-file

session.cert is used for authentication using client certificates. For specifying the trusted CA session.verify must be used instead. For more see the documentation.

Advertisement