Skip to main content

How to migrate a private key to the HSM?

There are several ways to migrate an existing Microsoft Certification Authority (AD CS) to use the private keys from the Primus HSM or CloudHSM service, either:

  1. Migrating the existing private key(s) and certificate from the Microsoft CSP or CNG/KSP to the Primus HSM CNG/KSP key storage provider. Requirement: private key must be exportable in wrapped format, e.g. PKCS#8.
  2. Using the existing private key and renew the certificate and private key, storing them on Primus HSM CNG/KSP.
  3. Setting up a new AD CS instance (side-by-side), e.g. to use newer algorithms.

Migrating existing AD CS key material from CSP or CNG/KSP to Securosys Primus HSM CNG/KSP requires the following steps (valid for Windows Server 2012R2/2016/2019):

For further information refer to the guidelines provided by Microsoft, e.g.:

warning

The following examples are related to the example Standalone root CA setup in this guide. Migrations of operational CAs should be tested thoroughly in a lab environment and are not covered in this guide.