Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix valid host list extraction from cert
Use subject if subjectAltName doesn't contains DNS entries (this could happen with old/broken certs). Now the logic is similar to the one used in Python's SSL match_hostname: https://hg.python.org/cpython/file/2.7/Lib/ssl.py#l238 The return value should be backward compatible (None if no hostname is found at all)
- Loading branch information