Skip to main content

PKCS#11 Vault

Configuration

NameTypeRequiredDescription
library_pathstringLibrary Path
pinstringUser PIN
slotstringSlot ID
labelstringLimit key search to the specified label (use in case of multiple key pairs in the same token)
object_ihhexLimit key search to the specified object ID (use in case of multiple key pairs in the same token)

Note: If the token contains multiple key pairs, every pair must have unique label or ID shared between private and public parts.

Example

library_path: /opt/homebrew/lib/softhsm/libsofthsm2.so
pin: 1234
slot: 0x4d0b85a2
label: TestKey

Environment variables

  • PKCS11_PATH
  • PKCS11_PIN
  • PKCS11_SLOT
  • PKCS11_LABEL
  • PKCS11_OBJECT_ID