Interface ImportCertOptions<A>

Certificate import options for createVerifier and createDecrypter.

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

Type Parameters

Properties

algoList?: readonly A[]

List of recognized algorithms.

SigningAlgorithmListSlim or EncryptionAlgorithmListSlim

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.

true

Current timestamp for checking ValidityPeriod.

Date.now()