softhsm

Software-based PKCS#11 cryptographic token for testing and development

brewmacoslinux
Try with needOr install directly
Source

About

Cryptographic store accessible through a PKCS#11 interface

Commands

softhsm2-utilsofthsm2-keyexport

Examples

Initialize a new SoftHSM token$ softhsm2-util --init-token --slot 0 --label mytoken --so-pin 1234 --pin 5678
List available tokens and their information$ softhsm2-util --show-slots
Import a private key into a token$ softhsm2-util --import key.pem --slot 0 --label mykey --id 01 --pin 5678