Closed sumitb closed 4 years ago
The docs at https://github.com/wbond/certvalidator/blob/master/docs/api.md#validate_tls-method show the three exceptions thrown, and what situations trigger them. In the case of a hostname mismatch, you'd want to catch certvalidator.errors.InvalidCertificateError
.
This is the provided example for TLS/SSL server validation in documentation:
However,
validator.validate_tls()
returns a certvalidator.path.ValidationPath instance and none of its attributes tells whether the tls/ssl to hostname is valid or not. Am I missing something here? How are others consuming this method?