# Do not follow redirects
curl.setopt(pycurl.FOLLOWLOCATION, 0)
- # Verify that we've got the right site; harmless on a non-SSL connect.
- curl.setopt(pycurl.SSL_VERIFYHOST, 2)
+ # Lower security settings - we need to get as musch as possible
+ curl.setopt(pycurl.SSL_CIPHER_LIST, 'ALL:@SECLEVEL=1')
+ curl.setopt(pycurl.SSL_VERIFYHOST, 0)
+ curl.setopt(pycurl.SSL_VERIFYPEER, 0)
curl.setopt(curl.CAINFO, certifi.where())
# Set timeouts to avoid hanging too long
if url.startswith('ftp://'):