Correctly test individual names, not Common Name over and over.

This commit is contained in:
Solderpunk 2020-05-23 17:20:26 +02:00
parent 16cf9fecb6
commit a3fd543aa6
1 changed files with 1 additions and 1 deletions

View File

@ -697,7 +697,7 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
names = set(names)
for name in names:
try:
ssl._dnsname_match(common_name, host)
ssl._dnsname_match(name, host)
break
except CertificateError:
continue