Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL certificate verify failed (_ssl.c:600)

Do you know about this error:

urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

This error occurred on my server when I run my app which is written on python, but when I run this app on local computer for sending requests to that server it works without any error. The python app sent to https request to myhost.com/action. and the web host is working with https. I checked ssl from sslchecker and it seems ssl installed succesfully. here is checker result:enter image description here

I don't know what I must show here to explain my problem. If you have a question about code or server settings I will try to answer as I can.

** This question isn't duplicate of that one

like image 260
Ulug'bek Avatar asked Oct 23 '25 16:10

Ulug'bek


1 Answers

A new ssl certification checking system is added in python 3, and one way to avoid the error of not passing certification is to nullify this mechanism:

import ssl
ssl._create_default_https_context = ssl._create_unverified_context
like image 183
Cedric Chen Avatar answered Oct 26 '25 05:10

Cedric Chen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!