Skip to main content

X509ChainBuilder

Represents a chain-building engine for X509Certificate certificates

Example

const chain = new x509.X509ChainBuilder({
certificates: [
new x509.X509Certificate(raw1),
new x509.X509Certificate(raw2),
// ...
new x509.X509Certificate(rawN),
],
});

const cert = x509.X509Certificate(raw);
const items = await chain.build(cert);

Constructors

new X509ChainBuilder()

new X509ChainBuilder(params): X509ChainBuilder

Parameters

params: X509ChainBuilderParams = {}

Returns

X509ChainBuilder

Properties

certificates

certificates: X509Certificate[] = []

Methods

build()

build(cert, crypto): Promise<X509Certificates>

Parameters

cert: X509Certificate

crypto: Crypto = ...

Returns

Promise<X509Certificates>