iya-sts
    Preparing search index...

    Variable certificateNameMatches

    certificateNameMatches: (cert: any, expected: any) => boolean = certificateNameMatches

    Type Declaration

      • (cert: any, expected: any): boolean
      • Answers whether a certificate's subjectAltName names what a caller expects (RFC 9525: never the common name). A DN is compared by the door, through common/certificate_subject.js, which requires this module.

        Parameters

        • cert: any

          PEM text, DER bytes or a parsed certificate

        • expected: any

          { dns, ip, uri, email }; every member given must match

        Returns boolean

        true when each member given matches, false when nothing was given

        Error when the input is not a certificate