Interface ImportCertOptions<A>

Certificate import options for createVerifier and createDecrypter.

interface ImportCertOptions<A> {
    algoList?: readonly A[];
    checkValidity?: boolean;
    now?: ValidityPeriod.TimestampInput;
}

Type Parameters

Properties

algoList?: readonly A[]

List of recognized algorithms.

Default Value

SigningAlgorithmListSlim or EncryptionAlgorithmListSlim

Remarks

SigningAlgorithmListSlim and EncryptionAlgorithmListSlim only contain a subset of available signing and encryption algorithms. Use SigningAlgorithmListFull and EncryptionAlgorithmListFull for all algorithms, at the cost of larger bundle size.

checkValidity?: boolean

Whether to check certificate ValidityPeriod. If true, throws an error if .now is not within ValidityPeriod.

Default Value

true

Current timestamp for checking ValidityPeriod.

Default Value

Date.now()