CmdID

CmdID / Commands

pkcs11-tool

Utility for managing and using PKCS #11 security tokens. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

List slots and their potential token, using a specific module (e.g. /usr/lib/softhsm/libsofthsm2.so)

pkcs11-tool --module path/to/module.so --list-slots --list-token-slotsIdentify

List objects in a specific slot. (Note: slot_id is not the slot index shown as "Slot X")

pkcs11-tool --list-objects --pin auth_pin --slot slot_idIdentify

Create a new object with a specific label and type

pkcs11-tool --slot slot_id --pin auth_pin --type cert --label "label" --id 01 --write-object path/to/cert.crtIdentify

Delete an object by its label and type

pkcs11-tool --slot slot_id --pin auth_pin --type cert --label "label" --delete-objectIdentify