0

I have ubuntu server that sends request to a website. When I send request it gives

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

error.

I added that website's CA certificate to my trusted certs lists. Now, I can send request with curl but not with python.

In python, I tried verify='location/cert.pem' and cert='location/cert.crt' , but I still get error above.

How to fix this issue?

Elvin Jafarov
  • 1,341
  • 11
  • 25

0 Answers0