Adding Server Certificates To Ca_bundle In Python
I'm using requests to communicate with remote server over https. At the moment I'm not verifying SSL certificate and I'd like to fix that. Within requests documentation, I've found
Solution 1:
This is actually trivial... CA_BUNDLE can be any file that you append certificates to, so you can simply append the output of ssl.get_server_certificate() to that file and it works.
Post a Comment for "Adding Server Certificates To Ca_bundle In Python"