sslko - v2.0.2
    Preparing search index...

    Function verifyHostname

    • Verifies if the given hostname matches the Common Name (CN) or Subject Alternative Names (SANs) of the certificate.

      Parameters

      • host: string

        The hostname to check.

      • certificate: DetailedPeerCertificate | PeerCertificate

        The certificate to getCertificateInfo against.

      Returns boolean

      true if the hostname matches, otherwise false.