Overview of pkcs11-tools
masterpkcs11-tools is a toolkit of small utilities designed for key management tasks on cryptographic tokens that implement a PKCS#11 interface. It provides a CLI experience similar to Unix utilities (like ls, mv, rm) but specialized for cryptographic operations.
Key capabilities include:
- Key Generation & Management: Generate keys (including Post-Quantum Cryptography), CSRs (PKCS#10), and self-signed certificates.
- Import/Export: Import certificates, public keys, and data files.
- Wrapping/Unwrapping: Support for symmetric and asymmetric key wrapping/unwrapping, including session key generation and direct wrapping.
- Advanced Operations: Key rewrapping (unwrap as session key then rewrap), token initialization, and reset.
- Compatibility: Works with software tokens like SoftHSM, NSS, and Kryoptic, as well as hardware tokens like YubiHSM and AWS CloudHSM.
- Algorithm Support: DES, 3DES, AES, HMAC, RSA, DSA, DH, NIST curves, Edwards curves, and Post-Quantum Cryptography (ML-KEM, ML-DSA, SLH-DSA).