What problem does it solve?
Managing cryptographic keys in software exposes them to extraction and misuse; this Skill integrates Hardware Security Modules through the PKCS#11 interface so keys are generated, stored, and used for signing and encryption inside tamper-resistant hardware, with verification that keys are non-extractable and FIPS-compliant.
Core Features & Use Cases
- PKCS#11 HSM Integration: Load vendor PKCS#11 libraries, enumerate slots and tokens, authenticate with user PINs, and run on-device operations using python-pkcs11, AWS CloudHSM, or YubiHSM2.
- On-Device Key Operations: Generate RSA 2048-bit or EC P-256 key pairs on the HSM, perform sign/verify and encrypt/decrypt round-trips, and inventory stored keys and certificates.
- Compliance & Misconfiguration Auditing: Query supported mechanisms, confirm keys are non-extractable and sensitive, validate FIPS 140-2/3 posture, and produce a JSON compliance report.
- Use Case: During a security assessment of a PKI deployment, use this Skill to confirm that all private keys on a YubiHSM2 are non-extractable, that signing runs on-device rather than falling back to software, and that only FIPS-approved mechanisms are enabled.
Quick Start
Use the HSM integration skill to connect to my SoftHSM2 token, generate an EC P-256 key pair, run a sign and verify round-trip, and produce a compliance report of all stored keys.