Correctly identify "hostname doesn't match" errors

This commit is contained in:
Alex Iribarren 2020-05-19 16:16:23 +02:00 committed by Tomas Kopecek
parent c72b5238f3
commit 2087561fe6

View file

@ -2175,7 +2175,8 @@ def is_requests_cert_error(e):
if ('Permission denied' in errstr or # certificate not readable
'certificate revoked' in errstr or
'certificate expired' in errstr or
'certificate verify failed' in errstr):
'certificate verify failed' in errstr or
"doesn't match" in errstr):
return True
return False