How to make a request using python requests SSL certificate in Windows OS?

How to make a request using python requests SSL certificate of a website in the Windows OS?
verify=False did not help. Can see it is necessary to show the certificate. But how to do it in Windows?
June 3rd 19 at 20:23
1 answer
June 3rd 19 at 20:25
Try this
cafile = 'cacert.pem'
r = requests.get(url, verify=cafile)
IOError: Could not find a suitable TLS CA certificate bundle, invalid path: cacert.pem - marcelo commented on June 3rd 19 at 20:28
and if you specify the full path to the file? - alia98 commented on June 3rd 19 at 20:31
And where is it located? - marcelo commented on June 3rd 19 at 20:34
, cacert.pem is the certificate of the web site that you want to use. He should have to be, well, or try verify=True to specify. - alia98 commented on June 3rd 19 at 20:37
I understand that I must use the certificate of the website, but where is it kept from me? In which folder? - marcelo commented on June 3rd 19 at 20:40
, how to some where kept there and stored, I do not know - alia98 commented on June 3rd 19 at 20:43
you'd better the error text brought, which made this conclusion. - Garnett_Deckow commented on June 3rd 19 at 20:46
I do not save anywhere else. Browser just open a HTTPS page - marcelo commented on June 3rd 19 at 20:49
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.XXXXXXXXX.net', port=443): Max retries exceeded with url: XXXXXXXXXXXXXXX (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)) - marcelo commented on June 3rd 19 at 20:52
the problem with the verification of the certificate options can be a lot slobodjanyk certificate, the old database is the trusted, old version requests and stuff - Garnett_Deckow commented on June 3rd 19 at 20:55
But in the browser the website is opened ... - marcelo commented on June 3rd 19 at 20:58

Find more questions by tags Python