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