createEncrypter options when importing public key from a certificate.

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

Properties

algoList?: readonly EncryptionAlgorithm<any, any, any>[]

List of recognized algorithms. Default is EncryptionAlgorithmListSlim. Use EncryptionAlgorithmListFull for all algorithms, at the cost of larger bundle size.

checkValidity?: boolean

Whether to check certificate ValidityPeriod. Default is true, which throws an error if current timestamp is not within ValidityPeriod.

Current timestamp for checking ValidityPeriod. Default is Date.now().

Generated using TypeDoc