pyload icon indicating copy to clipboard operation
pyload copied to clipboard

Download fails even with SSL certificate verification turned off - 'SSL: unable to obtain common name from peer certificate'

Open maaaaz opened this issue 9 months ago • 3 comments

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!

maaaaz avatar Mar 19 '25 12:03 maaaaz

while downloading a file

what filehoster

milahu avatar Mar 20 '25 04:03 milahu

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.

maaaaz avatar Mar 27 '25 23:03 maaaaz

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

maaaaz avatar Mar 27 '25 23:03 maaaaz