iya-sts
    Preparing search index...

    Variable spiffeIdFromCertificate

    spiffeIdFromCertificate: (
        certificate: any,
    ) =>
        | { errorCode: string; id?: undefined; ok: boolean; reason: string }
        | { errorCode?: undefined; id: string; ok: boolean; reason?: undefined } = ...

    Type Declaration

      • (
            certificate: any,
        ):
            | { errorCode: string; id?: undefined; ok: boolean; reason: string }
            | { errorCode?: undefined; id: string; ok: boolean; reason?: undefined }
      • Reads the SPIFFE ID from a certificate's one URI subjectAltName; several URI SANs are refused.

        Parameters

        • certificate: any

          the peer certificate as node describes it

        Returns
            | { errorCode: string; id?: undefined; ok: boolean; reason: string }
            | { errorCode?: undefined; id: string; ok: boolean; reason?: undefined }

        { ok: true, id }, or { ok: false, reason }