1 Overview

This document is mainly about how to configure Certificate Authority at Windows Server before smart card login certificates can be requested and loaded to FIDO keys. There are five main parts:

2 Prerequisites

3 Set up the Certificate Templates for Enrol on behalf

3.1 Create a Smartcard Enrolment Template for Agents

To create a smartcard enrolment template, you need to run the Certificate Templates Console

Press Win+R, type "certtmpl.msc" and press Enter.

In the Certificate Templates Console, select Certificate Templates in the left pane

Next, right-click Enrollment Agent, and select Duplicate Template.


First, the Compatibility tab is selected

In the Certification Authority box, select the OS version of the CA server 

In the Certificate recipient box, select the oldest OS version of the client machine in the domain


Next, select the General tab

Provide the name of the template, e.g. "PIV Smartcard Enrolment Template for Agent"

Optionally, you might want to change the Validity period and Renewal period

Enable the option "Publish certificate in Active Directory"


Next, select the Request Handling 

Make sure that you have selected the options as highlighted above

Next, select the Cryptography tab.

Change the Minimum key size to 2048

Select "Requests must use one of the following providers", and then in the Providers list select the Microsoft Base Cryptographic Provider v1.0.


Next, select the Security tab,

Make sure that the Read and Enroll permissions are enabled for the user or group of users who will be setting up the smart cards for logon. 

Click Apply, and then click OK to close the template properties window. 

Close the Certificate Templates Console.

3.2 Adding the Template to the Certification Authority

Right-click the Windows Start button and select Run.

Type "certsrv.msc" and press Enter to launch the Certification Authority manager

Double-click the name of your server, e.g. "la-DC101-CA" to expand it

Right-click Certificate Templates

Select New and then select Certificate Template to Issue.

Find and select the newly created enrolment template, e.g. "PIV Smartcard Enrolment Template for Agent". and then click OK

3.3 Add the enrolment template to the Agent's account

Login the agent's account

Right-click the Windows Start button and select Run.

Type "certmgr.msc" and press Enter to launch the Certificate Manager

Click on "Certificate \ Personal" to expand it

Right click "Certificates \ Personal \ Certificates"

Select "All Tasks \ Request New Certificate…"



Click "Next"

Click "Next"

Select the newly created enrolment template, e.g. 'PIV Smartcard Enrolment Template for Agents', and click 'Enroll'

Click "Finish"

3.4 Create a Certificate Logon Template for target users by Agents

  1. In order to be able to issue a smart card certificate on behalf of another user, the Smart Card User or Logon template needs to be adjusted to require the Enrolment Agent certificate for enrolment.
  2. Duplicate and configure a Smart Card User or Logon template.

  1. Make the following changes to following changes

  1. In Security Tab, make sure the "Read and Enroll" ability is set for the group or users who act as the Enrollment Agents to set up the other users with this certificate.
  2. Issue the cert template.

Enroll a Smart Card Certificate on behalf of others

    1. Log in as the user that will do enrollment for others, then run certmgr.msc. Right click the Certificate – Current User / Personal / Certificate, and select "Enroll on behalf of" from All Tasks / Advanced Operations.

    1. Click through the "Before You Begin" screen, and on the "Certificate Enrollment" screen, click the "Browse…" button and select the enrollment agent certificate you have been issued in Step 3.1 .




Click 'OK'.

    1. Note: If no Enrollment Agent certificate is available you will need to request one be issued to you.



    1. On the next page select the smart card enrollment certificate template, ie. PIV Smartcard Logon Template for Agents.

    1. Click Next and enter the target domain user you are going to enroll the certificate on the behalf of.

    1. Click Next, and it asks you to insert the user's smart card if it is not already inserted. Enter the PIN.
    2. If the enrollment is successful, the dialog will show the following:




    1. After the enrollment is success, the smart card is ready for target user, and Agent can click 'Next user' to enroll for others or close windows.
    2. You can see the issued smartcard is listed in Agent's personal store.

    1. Now, the smart card sign-in is ready for end user, and user is able to login domain with the issued smartcard.