HSM and Crypto Provider Registry Locations in Windows

Hardware Security Modules (HSMs) interface with Windows operating systems through cryptographic providers, which are registered in the Windows Registry (regedit). Depending on whether the HSM uses modern Cryptography Next Generation (CNG) Key Storage Providers (KSPs) or legacy Cryptographic API (CryptoAPI) Cryptographic Service Providers (CSPs), Windows stores their configuration, drivers, and metadata across specific system registry hives.

1. Cryptography Next Generation (CNG) Key Storage Providers (KSPs)

Modern HSMs typically implement a CNG Key Storage Provider (KSP) to support current Windows cryptographic operations, such as Active Directory Certificate Services (AD CS) and TLS.

2. Legacy CryptoAPI Cryptographic Service Providers (CSPs)

Older HSM integrations rely on Microsoft CryptoAPI CSP architecture.

3. Smart Card and Minidriver-Based HSMs

Some HSMs utilize the Windows Smart Card Minidriver specification to interface with the Base Smart Card Cryptographic Service Provider (Base CSP) or the Microsoft Smart Card KSP.

Verifying Provider Registration

To verify that Windows recognizes the registry entries correctly without opening regedit, you can run the following command in an elevated Command Prompt:

certutil -csplist

(Lists all registered CSPs)

certutil -csptest

(Tests and lists available Cryptography Next Generation KSPs)