shotgunsoftware / python-api

A Python-based library for accessing Flow Production Tracking API.
https://developer.shotgridsoftware.com/python-api
Other
306 stars 198 forks source link

Allow unverified SSL #199

Closed Ji-yeonPark closed 4 months ago

Ji-yeonPark commented 5 years ago

This is about SSL Validation support. It is little bit more expanded code than #149

Current SG API version can not upload version's path to movie when SSL certificate verify is failed. Adding the option 'NO_SSL_VALIDATION = True' also results in the same. Errors that occur are as follows. urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)>

So, I added code about create a new SSL Context code for bypass verification.

Thanks.