Download fails even with SSL certificate verification turned off - 'SSL: unable to obtain common name from peer certificate'
Hello there,
Even with the Verify SSL certificates option set to False, I get the following error while downloading a file:
WARNING | pyload | Download failed: XXXX \ (60, 'SSL: unable to obtain common name from peer certificate')
Can you fix it ?
Cheers!
while downloading a file
what filehoster
Well I can't share the link for the error, but here is a similar error with the following link https://wrong.host.badssl.com/icons/icon-red.png
It produces (60, "SSL: no alternative certificate subject name matches target hostname 'wrong.host.badssl.com'")
You can use the badssl.com website to test your implementation.
From what I see here in your code, you might need to add other pycurl "ignore-parameters" to zero :
pycurl.SSL_VERIFYHOST
pycurl.SSL_VERIFYRESULT
pycurl.SSL_VERIFYPEER
pycurl.SSL_VERIFYSTATUS