sslko - v2.0.11
    Preparing search index...

    Function isSelfSignedCertificate

    • Checks if a certificate appears to be self-signed by comparing all distinguished name fields between subject and issuer. A simple CN-only comparison produces false positives because different CAs can share a CN.

      Parameters

      • certificate: DetailedPeerCertificate | PeerCertificate

        The certificate to check

      Returns boolean

      true if the certificate appears to be self-signed