Create the certificate template
In the Certificate Templates Console, duplicate the built-in Smartcard Logon template and set the following on the duplicate. Anything not listed keeps the value inherited from Smartcard Logon.
When the subject is built from Active Directory, a CA with the KB5014754 update (May 2022 or later) also adds the SID extension
1.3.6.1.4.1.311.25.2. Domain controllers now enforce it: a certificate without it is issued but can’t sign in. The admin portal flags a policy whose certificates lack it with Domain controllers may refuse these certificates.
Keep the Certificate Generation Policy’s Key Type at its default, EC P-521, which matches this template. The portal also offers RSA 2048, but Windows can’t cache a domain sign-in made with an RSA key, so users can’t sign in offline. If you need RSA, contact help@allthenticate.com before you set it up.
Publish the template
In Certification Authority, right-click Certificate Templates and select New > Certificate Template to Issue, then select your template. Also check that the CA’s Properties > Policy Module > Properties follows the template rather than pending every request.Issue the enrollment agent certificate
The bridge signs every user’s request with an enrollment agent certificate. Its owner, the Enrollment Agent certificate owner, must be a normal user account that can sign in interactively; a group Managed Service Account (gMSA) can’t. With CES, it’s normally the same account as the CES authentication account. With WCCE, it doesn’t need to be the bridge’s run-as account.1
Allow the owner to enroll
In the Certificate Templates Console, open the built-in Enrollment Agent template. On Security, add the owner with Read and Enroll. Then publish it: in Certification Authority, right-click Certificate Templates > New > Certificate Template to Issue > Enrollment Agent.
2
Request the certificate
On any domain-joined computer, sign in as the owner and open Manage User Certificates. Right-click Personal > All Tasks > Request New Certificate, and select Enrollment Agent. Under Details > Properties > Private Key, select Make private key exportable. Enroll, then select Finish.
3
Export it as a PFX
Right-click the certificate > All Tasks > Export. Select Yes, export the private key and keep Personal Information Exchange - PKCS #12 (.PFX). Set a strong password, change the encryption from TripleDES-SHA1 to AES256-SHA256, and leave Group or user names cleared, which the bridge doesn’t support. Save it, for example as
enrollment-agent.pfx, somewhere secure.4
Unpublish the Enrollment Agent template
In Certification Authority > Certificate Templates, right-click Enrollment Agent and select Delete. This only stops the CA issuing from it; your exported certificate is unaffected.
certutil -v -dump -p "<password>" enrollment-agent.pfx opens without a password error. Exactly one certificate shows Provider = … followed by Signature test passed, and its Enhanced Key Usage lists Certificate Request Agent (1.3.6.1.4.1.311.20.2.1). The bridge refuses a PFX with no private key, more than one, or no certificate with this purpose.Alternative on Windows: keep the enrollment agent key in the certificate store
Alternative on Windows: keep the enrollment agent key in the certificate store
The Windows build of the bridge can take the enrollment agent certificate and key from the bridge host’s Windows certificate store instead of a PFX, with
agent_cert_stores (for example LocalMachine\My) in place of the PFX path and password. The key is used through CNG, so it can be non-exportable or held by the TPM, and the bridge searches the stores again before every batch, so a renewed certificate is picked up without a restart. agent_cert_thumbprint optionally pins one certificate; a renewal changes the thumbprint, so the pin must follow it.The account the bridge runs as needs Read on the private key: the gMSA, or the service identity NT SERVICE\dc-bridge. Without it, the bridge reports cannot open the private key and does not give <account> Read. See Bridge configuration.Set up your enrollment path
- Web enrollment (CES)
- Native enrollment (WCCE)
Install the Certificate Enrollment Web Service by following Microsoft’s CES guide, on the CA or a domain-joined IIS server, with one of the two authentication types the bridge supports:
Windows integrated (Kerberos) authentication to CES isn’t supported. To have the CA authenticate the bridge’s own Windows account, use WCCE.The account the installer creates to run the service is the CES/IIS application-pool service account. Never reuse it as any other account in this guide.Note the endpoint URL:
https://<host>/<CA-name>_CES_UsernamePassword/service.svc/CES or https://<host>/<CA-name>_CES_Certificate/service.svc/CES. The bridge refuses a plain http:// URL at startup, except to localhost, 127.0.0.1 or [::1] for local testing.The CES site’s TLS certificate must be a Server Authentication certificate. If an internal CA issued it, export that CA’s certificate as DER or Base-64 .cer (not .p7b), and make sure IIS sends the intermediate. To export it on the CA, run certutil -ca.cert ca.cer.Client certificate authentication only: sign in as the CES authentication account, request a certificate from the built-in User template (or any template with Client Authentication that builds the subject from Active Directory with the UPN), mark the key exportable, and export it like the enrollment agent PFX, for example as ces-client.pfx. The CES application-pool account must be trusted for constrained delegation to the CA’s HOST and rpcss services with Use any authentication protocol, as in Microsoft’s guide.Restrict what the bridge can issue
The enrollment agent certificate, together with the run-as account’s CA rights, lets the bridge obtain logon certificates for any user the template and the CA allow. Treat the bridge host as Tier 0, like the CA itself, and cap it with an enrollment agent restriction. The CA enforces the restriction against the caller, so it limits what a compromised bridge host can issue. The CA’s Issued Certificates view records the user as Requester Name and the run-as account as Caller Name.1
Restrict enrollment agents
In Certification Authority, open the CA’s Properties > Enrollment Agents and select Restrict enrollment agents.
2
Add the bridge and its template
Under Enrollment agents, add the bridge’s run-as account (the gMSA, or the bridge host’s computer account under NetworkService or LocalSystem). Under Certificate Templates, add your smart card logon template.
3
Allow and deny groups
Under Permissions, allow the groups the bridge may enroll for, and deny Domain Admins, Enterprise Admins, Administrators, Account Operators and any other Tier 0 group.
4
Audit issuance
On Auditing, select Issue and manage certificate requests, and turn on the audit policy:
auditpol /set /subcategory:"Certification Services" /success:enable /failure:enable.0x80094009 and shows as an error on that one request in the admin portal, naming the run-as account; the policy’s other users keep enrolling.
What you should have now
- The enrollment agent PFX and its password (or the certificate in the bridge host’s store).
- The Template name of your smart card logon template.
- CES: the
https://endpoint URL, the CES credentials (user name and password, or the client PFX and its password), and the CA certificate that issued the CES site certificate. - WCCE: the CA config string, a run-as account with the rights above, and a domain-joined Windows host for the bridge.