What is an HSM?
An HSM (Hardware Security Module) is a dedicated physical device whose sole task is to protect cryptographic keys. All key generation, encryption and signing takes place inside the module, and the private keys can never be exported in plain text. If someone physically tampers with the device, it typically erases its own keys.
HSM vs. software keys
Keys stored as files on a server can be copied unnoticed by anyone with sufficient access, and a leak is often never discovered. Keys in an HSM, on the other hand, can only be used, not handed over: the module performs the operation and never releases the key itself. That is the difference auditors and standards such as FIPS 140 look for when the keys are business-critical.
When does compliance require an HSM?
The requirement typically arises in three places:
- Regulation and certification: qualified electronic signatures under eIDAS require the keys to be protected in certified hardware. See ENISA, the EU's cybersecurity agency, for the framework around trust services.
- PKI root keys: root and issuing certificates in a PKI are the foundation of the entire chain of trust. If they are compromised, everything issued from them is worthless.
- Supplier and industry requirements: finance, pharma and payment solutions often impose contractual requirements for FIPS 140-certified key protection, and code signing of software increasingly requires hardware-protected keys too.
HSM in your own rack or as a cloud service?
A physical HSM gives full control but requires redundancy, backup ceremonies and specialist knowledge. Cloud services such as Azure Key Vault with HSM protection (see Microsoft Learn) deliver the same certified protection as a service and are often a better fit for Danish SMBs. The choice depends on compliance requirements, integrations and who will operate the solution day to day.
The HSM and the rest of key management
An HSM solves the storage, but not the lifecycle: certificates still have to be issued, renewed and monitored, otherwise expiry means downtime. If you want the full picture, we have collected it in the e-book PKI and HSM in practice with a checklist for assessing your own maturity.
How MI Support IT can help
We have many years of specialist experience with enterprise PKI and key management, from designing certificate hierarchies to selecting and operating HSM solutions. Read more under PKI Management, or contact us for a concrete assessment of your needs.