iya-sts
    Preparing search index...

    Variable certificateFieldProblems

    certificateFieldProblems: (cert: any, options: any) => any[] = certificateFieldProblems

    Type Declaration

      • (cert: any, options: any): any[]
      • Holds one certificate to the role it is asked to play and answers every check that failed. Pure: no store, no setting and no network, and now is the caller's. The door reads this, because a verdict names every check rather than the first to fail.

        In order: validity, basicConstraints, keyUsage, extendedKeyUsage, the signature's hash, the key, and critical extensions. A keyUsage absent permits everything (RFC 5280 section 4.2.1.3). An extendedKeyUsage absent is refused only where the use case's specification requires it, and present it must name a purpose asked, or anyExtendedKeyUsage where presence is not what is required.

        Parameters

        • cert: any

          PEM text, DER bytes or a parsed certificate

        • options: any

          { role, now, skewMs, keyUsage (any of; empty asks nothing), eku: { oids, required } | null, mayBeCa, allowSha1, allowCritical (OIDs), validityAt }; validityAt replaces now for the window alone, which is sigstore's rule

        Returns any[]

        an array of { check, code, why }, empty when all hold

        Error when the input is not a certificate