iya-sts
    Preparing search index...

    Variable presentedAnchorProblem

    presentedAnchorProblem: (cert: any, purpose: any) => string = presentedAnchorProblem

    Type Declaration

      • (cert: any, purpose: any): string
      • Whether a certificate presented by a TLS peer, and matched to an installed trust anchor by its fingerprint, may be taken as verified although OpenSSL refused it (#1242). node reports ONE error of a chain OpenSSL continued through, so another — the purpose, the key usage, a critical extension nobody reads, the validity — is asked again here rather than trusted to be the one reported.

        Parameters

        • cert: any

          PEM text, DER bytes or a parsed certificate

        • purpose: any

          { keyUsage, eku, now }: the keyUsage bits any one of which permits the use (RFC 5280 section 4.2.1.3; absent permits all), and the extendedKeyUsage OID that must be named when the extension is present. anyExtendedKeyUsage does not stand in for it, as it does not in OpenSSL's purpose checks.

        Returns string

        '' when it may, or the sentence saying why not