Variable sigstoreSignerFacts
sigstoreSignerFacts: (
der: any,
) => {
codeSigning: boolean;
issuer: string;
notAfter: number;
notBefore: number;
pem: any;
spki: any;
subject: any;
} = sigstoreSignerFacts
Type Declaration
-
- (
der: any,
): {
codeSigning: boolean;
issuer: string;
notAfter: number;
notBefore: number;
pem: any;
spki: any;
subject: any;
}
-
Returns {
codeSigning: boolean;
issuer: string;
notAfter: number;
notBefore: number;
pem: any;
spki: any;
subject: any;
}
{ subject, issuer, codeSigning, notBefore, notAfter, spki },
or null when the bytes are not a certificate
Reads the facts of a sigstore signing certificate.
subjectis the first non-empty subjectAltName in sigstore's order andissuerthe OIDC issuer extension, as SPIRE'sextractSubject()does.