svanoort / pyresttest

Python Rest Testing
Apache License 2.0
1.15k stars 325 forks source link

Fix "SSL certificate problem" by using certifi #255

Open j796160836 opened 7 years ago

j796160836 commented 7 years ago

I got this error but target website have a valid certificate.

error: (60, 'SSL certificate problem: self signed certificate in certificate chain')

related to Issues #46.

I solved by using certifi package which is basically an up-to-date copy of mozilla's built in certificate. Merge if you need, thanks.

Reference: https://stackoverflow.com/questions/16192832/pycurl-https-error-unable-to-get-local-issuer-certificate https://stackoverflow.com/questions/27804710/python-urllib2-ssl-error/27826829#27826829

svanoort-jenkins commented 7 years ago

Can one of the admins verify this patch?

j796160836 commented 7 years ago

Here is certifi modules info

https://pypi.python.org/pypi/certifi GitHub https://github.com/certifi/python-certifi

crazi-coder commented 3 years ago

@j796160836 , We are working on the fork of this in https://github.com/crazi-coder/resttest3, Please do the contribution on that . This issue is fixed on the fork