Skip to main content

common_name_matches

Function common_name_matches 

Source
pub(crate) fn common_name_matches(
    cert: &CertificateDer<'_>,
    server_name: &ServerName<'_>,
) -> bool
Expand description

Whether server_name exactly matches the certificate’s subject CN, which OpenSSL checks when the certificate has no DNS subjectAltName. Wildcard CNs are not matched.