pub fn verify_server_name(
cert: &ParsedCertificate<'_>,
server_name: &ServerName<'_>,
) -> Result<(), Error>
Expand description
Verify that the end_entity
has an alternative name matching the server_name
.
Note: this only verifies the name and should be used in conjunction with more verification like verify_server_cert_signed_by_trust_anchor