NDNts

    Interface ImportCertOptions<A>

    Certificate import options for createVerifier and createDecrypter.

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

    Type Parameters

    Index

    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()

    MMNEPVFCICPMFPCPTTAAATR