How to integrate Yubikey smart card authentication for PSM for Windows
143
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:03 PM
Objective
How to integrate Yubikey smart card authentication for PSM for Windows
Environment
11.4;11.5;11.6;11.7
Procedure
Stage 1 : Download and Install Yubikey Minidriver on your local machine as well as PSM server.
If your test Windows system is running on a Virtual Workstation , please ensure YubiKey is connected using pass through mode instead of shared device mode.
Please follow below steps to turn on
1)Shut down the virtual machine.
2)Locate the VM's .vmx configuration file.
3) Open the configuration file with a text editor.
4) Add the two lines below to the file and save it.
usb.generic.allowHID = "TRUE"
usb.generic.allowLastHID = "TRUE"
At this point, a non-shared YubiKey or Security Key should be available for pass-through. If not, you may need to manually specify the USB vendor ID and product ID in the configuration file as well. The example below applies to a YubiKey 4 or 5 with all its modes enabled.
usb.quirks.device0 = "0x1050:0x0407 allow"
Stage 2 : Prepare your Windows environment for Smart card authentication
This stage is optional if you have configured your smart card authentications for domain accounts.
1) prerequisite: You have configured Certification Authority on a Windows server in your domain.
2) Logon to your Certification Authority server
3) Hold Windows key on your keyboard+R -->type certtmpl.msc and press Enter
4) locate Smartcard Logon--> right click and select Duplicate Template.
5) Select the General tab , Please update below items:
Template display name / Template name to the name of your choice
Validity period: ensure the time-frame you specify does not exceed the restrictions for your Certification Authority.
Ensure the option to Publish certificate in Active Directory is selected.
6) Under Compatibility tab
Select the operating system where the Certification Authority resides.
For Certificate recipient, select the oldest Windows operating system in your domain environment.
7) Under Request Handling tab
Purpose, select Signature and encryption.
Please ensure below items are selected :
Include symmetric algorithms allowed by the subject
Renew with the same key
Automatic renewal of smart card certificates, use the existing key if a new key cannot be created
Prompt the user during enrollment
8) Under Cryptography tab, please use below settings:
Provider category: Select Key Storage Provider
Algorithm name: Select either RSA
Minimum key size: 2048
Select the option for Requests must use one of the following providers.
Under Providers, select Microsoft Smart Card Key Storage Provider.
For Request hash, select SHA256
9 ) under Security tab
Group or user names: Please add domain group you want to allow access to this template.
Permissions for [group name]: Ensure the options are checked for Read, Enroll, and Auto-enroll.
10) Click Apply, and then click OK to close the template properties window
11)Hold Windows key on your keyboard+R -->type certsrv.msc and press Enter
12) Right click Certificate Templates --> new--> Certificate Template to Issue-->select the template you just created
13)Allow Active Directory to update. Depending on environment, it could take up to eight hours for the template to publish to Active Directory.
14)From a domain controller--> Hold Windows key on your keyboard+R -->type gpmc.msc to open Group Policy Management Console
15) Find the group policy you want to edit.
16 ) Go to Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies
--> Certificate Services Client - Auto-Enrollment
Enabled Configuration Model
and
In Properties , select below 2 options
Renew expired certificates, update pending certificates and remove revoked certificates.
Update certificates that use certificate templates
17 ) Under Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies
--> Certificate Services Client - Certificate Enrollment Policy --> Enable Configuration Model
18) Depending on your environment, it could take up to eight hours for the template to publish to Active Directory.
19) Log into your domain account on Windows 2016 PC connected to the domain . A Certificate Enrollment notification appears above the System Tray.Follow the prompts to enroll the domain user.
The system may prompt you to key in a PIN. If a custom PIN has not been set, enter the default PIN:
123456.
At this stage you should be able to connect to authenticate the same domain user with Smart Card authentication in RDP connections outside PSM
Stage 3 configure PSM for Windows to work with Smart card authentication.
1) Prerequisite
PSM is installed on a domain-joined machine
The Vault is configured with LDAP integration
Smart card drivers are installed on the PSM machine
The Access this computer from the network group policy is enabled for all users who use PKI authentication.
Enable the group policy
If the user is required to use Network Authentication Level (NLA), the user must be a member of the Remote Desktop users group on the PSM machine.
2) If you did not enable PKI authentication during installation, you must add the relevant authorization to the PSMGW user:
In PrivateArk, go to Tools > users and groups.
Select the PSMGW user.
In the General tab, select Provide full impersonation.
Click OK.
3) To automatically have the Vault provision the user's Subject Name from the Active Directory into the Vault user's DN field:
Go to Administration > LDAP Integration.
Expand Directories and select the integrated directory.
Set UseLDAPCertificateOnly to Yes.
4) create a RDP file with below configuration:
----------------
full address:s:xxx.xxx.xxx.xxx.
server port:i:3389
username:s:
alternate shell:s:psm /u targetusername /a yyyy.yyyy.yyy.yyyy /c ConnectionCompontID
redirectsmartcards:i:1
----------------
Please replace xxx.xxx.xxx.xxx , targetusername,yyyy.yyyy.yyy.yyyy and ConnectionCompontID as per your situation.
xxx.xxx.xxx.xxx= The address of the PSM server through which you want to establish your connection.
yyy.yyyy.yyy.yyy= your Target Machine host-name or IP address
For example
5) open the RDP file with MSTSC and select the smart card profile you want to connect with and key in your Yubikey PIN