This section describes how to create certificate templates when the private key is managed using an HSM. All subscribers who enroll for a certificate based on such a template must have a client connection to the HSM.
If a CA installed on Windows Server Core is managed remotely, the snap-ins in this section must run on a separate machine with GUI capabilities.
To integrate the CA certificate enrollment functionality with a CA private key generated by the Utimaco HSM:
-
Create a CA template that uses the Utimaco HSM.
-
Open the command prompt and run the
certtmpl.msccommand.
"Certificate Template Console" Window
-
Right-click the Administrator template, then select Duplicate Template. The Properties window opens, showing the Compatibility tab.
"Compatibility Tab" Window
-
Select the appropriate windows version under Certificate Authority and Certificate Recipient drop-down box.
"Compatibility Tab" Window
-
Select the General tab. In the Template display name, type a name for the template.
"General Tab" Window
-
Select the Request Handling tab, and in Purpose select Signature and deselect Allow private key to be exported.
"Request Handling Tab" Window
If you are using smartcard authentication, the prompt will appear on the PIN Pad device to insert the smartcard and enter the PIN. Then, press the OK button on the PIN Pad.
-
Select the Cryptography tab and in the Provider category, select Key storage provider.
-
In Algorithm Name, select the algorithm from the list.
-
Click on the radio button for Requests must use one of the following providers, and in Providers, select Utimaco CryptoServer Key Storage Provider only.
If the CA is on Windows Server Core and you are managing it remotely using certtmpl.msc on a different PC, you need to install the Utimaco CryptoServer Key Storage Provider on the PC that is running certtmpl.msc. Otherwise, the Utimaco CryptoServer provider will not appear.
-
In Request Hash, select a hash type.
"Cryptography Tab" Window
-
Select Subject Name tab and deselect Include e-mail name in subject name and deselect E-mail name.
"Subject Name Tab" Window
-
Select Apply and OK to save the template settings and close the Certificate Template console.
-
Open the command prompt and run the
certsrv.msccommand.
Windows Server Core: If a CA is configured on Windows Server Core and is managed via the Microsoft Management Console (MMC) from a different machine, you might get an error that states: Cannot manage Active Directory Certificate Services. To fix this, select OK, then in the certsrv.msc~ console that appears, select Action and click on Retarget Certification Authority. In the window that appears, select Another Computer, then select Browse to find the CA you want to manage.
Windows Server Core: Sometimes an error appears indicating that the RPC server is unavailable. To fix this, sign in to the Windows Server Core machine and minimize the command prompt. A window prompts you to load a key. Complete the steps in the window and attempt to select the CA again from certsrv.msc.
-
In the left-hand pane, select the Certificate Authority name.
-
Right-click the Certificate Template node, then select New, then select Certificate Template to Issue.
"Certificate Templates Tab" Window
-
Select the template you just created, then click OK.
"Enable Certificate Templates" Window
-
Request a certificate based on the template:
-
Open the command prompt and run the
certmgr.msccommand. -
In the left-hand pane, right-click the Personal node, then select All Tasks, then Request New Certificate.
-
"Certificate Manager" Window
-
Select Next in the first two windows.
If you are using smartcard authentication, the prompt will appear on the PIN Pad device to insert the smartcard and enter the PIN. Then, press the OK button on the PIN Pad.
-
Select the template that you created, then click Enroll.
"Certificate Enrollment" Window
-
The Certificate Installation Results window should show STATUS: Succeeded. Select Finish.
-
Verify that the certificate is enrolled successfully. If the certificate fails to enroll because the CA is not started or the RPC ports are blocked, the following error is displayed:
Error: the RPC server is unavailable. 0x800706ba (win32: 1722 RPC_S_SERVER_UNAVAILABLE
The enrollment wizard shows if the certificate enrollment was successful or failed.
Use Details to check the main information.