This commit is contained in:
CHEVALLIER Abel
2025-11-13 16:23:22 +01:00
parent de9c515a47
commit cb235644dc
34924 changed files with 3811102 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { X509Certificate } from '@sigstore/core';
import { CertAuthority } from '../trust';
export declare function verifyCertificateChain(timestamp: Date, leaf: X509Certificate, certificateAuthorities: CertAuthority[]): X509Certificate[];
interface CertificateChainVerifierOptions {
trustedCerts: X509Certificate[];
untrustedCert: X509Certificate;
timestamp: Date;
}
export declare class CertificateChainVerifier {
private untrustedCert;
private trustedCerts;
private localCerts;
private timestamp;
constructor(opts: CertificateChainVerifierOptions);
verify(): X509Certificate[];
private sort;
private buildPaths;
private findIssuer;
private checkPath;
}
export {};