This guide validates the use of Utimaco HSM-backed certificates with HGS. End-to-end TPM attestation validation is outside the scope of this integration guide and requires a dedicated guarded fabric environment.
Installing the Host Guardian Service Role
Install the Host Guardian Service role and the required management tools using an elevated PowerShell session.
Install-WindowsFeature HostGuardianServiceRole -IncludeManagementTools -Restart
The server restarts automatically after the installation.
After the restart, verify that the Host Guardian Service role is installed successfully.
Get-WindowsFeature HostGuardianServiceRole
Configuring the HGS Forest
Host Guardian Service can be deployed in a dedicated HGS forest or an existing bastion forest. This guide uses a dedicated HGS forest to provide the directory services required for the HGS environment.
To configure a dedicated Active Directory forest for Host Guardian Service, run the following command from an elevated PowerShell session:
Install-HgsServer -HgsDomainName '<HGS_Domain_Name>' -Restart
The server restarts automatically to complete the HGS forest configuration.
After the restart, verify that the server is associated with the configured HGS domain.
Get-CimInstance Win32_ComputerSystem | Select-Object Domain,PartOfDomain
Configuring the Certificate Authority for HGS Certificates
The HGS signing and encryption certificates can be obtained from an appropriate Certificate Authority. This guide uses Microsoft AD CS as the certificate-issuing authority for the example configuration.
Active Directory Certificate Services (AD CS) is used to issue the HGS signing and encryption certificates.
Install the Certification Authority role and the required management tools from an elevated PowerShell session.
Install-WindowsFeature ADCS-Cert-Authority -IncludeManagementTools
After the role installation completes, configure an Enterprise Root CA that will be used to issue the HGS certificates.
Install-AdcsCertificationAuthority `
-CAType EnterpriseRootCA `
-CACommonName "<CA_Name>" `
-CryptoProviderName "RSA#Microsoft Software Key Storage Provider" `
-KeyLength 2048 `
-HashAlgorithmName SHA256 `
-ValidityPeriod Years `
-ValidityPeriodUnits 5 `
-Force
Verify that the Active Directory Certificate Services (CertSvc) service is in the Running state before proceeding.
Get-Service CertSvc
Creating the HGS Certificate Template
The HGS signing and encryption certificates require specific certificate properties. Create a certificate template that will be used to issue these certificates.
For the certificate requirements supported by Microsoft HGS, refer to Microsoft documentation: Obtain certificates for HGS.
Open the Certificate Templates console:
certtmpl.msc
Right-click Computer and select Duplicate Template.
Duplicating the Computer Certificate Template
On the General tab, specify a name for the certificate template that will be used for the HGS signing and encryption certificates.
Configuring the HGS Certificate Template General Settings
On the Subject Name tab, select Supply in the request. This allows the subject name to be provided when the HGS signing and encryption certificate requests are created.
Configuring the HGS Certificate Template Subject Name
On the Compatibility tab, select Compatibility Settings that support Key Storage Providers (KSPs).
Configuring Certificate Template Compatibility Settings
Lower compatibility settings are selected intentionally because they support Key Storage Providers and remain compatible with newer Windows Server versions.
On the Cryptography tab, configure the certificate template to use a Key Storage Provider with RSA and SHA256.
Configuring Cryptographic Settings for the HGS Certificate Template
On the Security tab, grant Read and Enroll permissions to the account that will submit the HGS certificate requests.
Configuring Enrollment Permissions for the HGS Certificate Template
Click Apply, and then click OK to create the Host-Guardian-Server-Certs certificate template.
Publishing the HGS Certificate Template
The newly created certificate template must be published on the Certification Authority before it can be used to issue the HGS signing and encryption certificates.
Open the Certification Authority console:
certsrv.msc
Expand the configured Certification Authority. Right-click Certificate Templates and select: New → Certificate Template to Issue.
Selecting a Certificate Template to Issue
Select Host-Guardian-Server-Certs. Click OK.
Publishing the HGS Certificate Template