Crypto KMS
    Preparing search index...

    Interface Pkcs11HsmOptions

    Configuration options for the simulated PKCS#11 provider.

    interface Pkcs11HsmOptions {
        modulePath?: string;
        slotIndex?: number;
        tokenLabel?: string;
        pin?: string;
        hsmModel?:
            | "thales-luna"
            | "aws-cloudhsm"
            | "utimaco"
            | "yubihsm2"
            | "generic";
        simulate?: boolean;
    }
    Index
    modulePath?: string

    Path to a PKCS#11 shared library. Recorded only; never loaded.

    slotIndex?: number

    HSM slot index (defaults to 0).

    tokenLabel?: string

    HSM token label.

    pin?: string

    User PIN. The simulation does not verify it: any non-empty PIN marks the session as authenticated.

    hsmModel?: "thales-luna" | "aws-cloudhsm" | "utimaco" | "yubihsm2" | "generic"

    HSM model label, used only in key identifiers and diagnostics.

    simulate?: boolean

    Must be true. No real PKCS#11 backend exists, so construction throws unless the caller explicitly opts in to the in-memory simulation.