Security Tools › PKI & Certificates › HSM & PKCS#11
HSM and PKCS#11
Build and parse PKCS#11 URIs (RFC 7512), decode the CKR, CKM and CKA codes in your logs, and review the attributes of an HSM key template before you generate keys.
- 3 free tools
- Nothing uploaded or stored
- PKCS#11 · RFC 7512
HSM & PKCS#11
Hardware security modules keep CA and signing keys inside tamper-resistant hardware. PKCS#11 (Cryptoki) is the standard API to use them.
PKCS#11 URI builder & parser RFC 7512
PKCS#11 is the standard interface to HSMs, smart cards and tokens. Browsers cannot talk to tokens directly, but most tools (OpenSSL 3, p11-kit, GnuTLS, many HSM SDKs) identify keys with a pkcs11: URI. Build one here, or paste one to read it.
Build
There is deliberately no field for pin-value: PINs should not travel inside URIs.
Parse
Example: openssl pkeyutl -sign -provider pkcs11 -inkey "pkcs11:object=web-signing-key;type=private" …
PKCS#11 code lookup CKR · CKM · CKA New
Got CKR_0x000000A0 in a log? Decode PKCS#11 return codes, mechanisms and attributes by number or name, with what to check next.
Values follow the OASIS PKCS #11 v2.40/3.0 specifications. Codes from 0x80000000 are vendor-defined — see your HSM vendor's header files.
HSM key-template review New
Tick the attributes you set when generating a private or secret key on your HSM. The review flags settings that weaken key protection.
FIPS 140-3 security levels at a glance
Public and high-assurance CAs generally keep their keys in HSMs validated to FIPS 140-2/140-3 Level 3 or higher. Check a module's certificate in NIST's CMVP list.