Citrix Federated Authentication Service – SSO Fails and Users Are Prompted for Credentials After Increasing Certificate Template Minimum Key Size

book

Article ID: CTX695654

calendar_today

Updated On:

Description

When the certificate template minimum key size is increased to 4096, it can break SSO in Citrix Federated Authentication Service, resulting in users being prompted for credentials on the VDA.

 

  • image.png      image.png

Environment

"Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it."

Cause

By default, Citrix FAS requests certificates with: RSA 2048-bit key size

When the certificate template minimum key size is increased to: 4096 bits
 

The CA rejects the request because:

Requested key size (2048) does not meet template minimum (4096)

As a result:

  1. Certificate authorization fails

  2. FAS cannot obtain a valid  logon certificate

  3. VDA falls back to password authentication

Resolution

To align FAS with the updated template requirement, configure FAS to request 4096-bit keys.

Step 1: Add Registry Key on FAS Server

Run the following command on each FAS server:

 
 
reg add HKLM\SOFTWARE\Citrix\FederatedAuthenticationService\Policy /v KeySize /t REG_DWORD /d 4096 /f
 

Step 2: Restart Citrix FAS Service

Restart the Citrix Federated Authentication Service.

Step 3: Reattempt Authorization

Open FAS console and retry certificate authorization.

The certificate should now authorize successfully.

 

 

Caution! Refer to the Disclaimer at the end of this article before using the Registry Editor.

Issue/Introduction

Single Sign-On (SSO) fails in the Citrix environment after increasing the minimum key size on the Certificate Authority (CA) template. Users are prompted to manually enter their credentials when launching sessions.

During certificate authorization in Citrix Federated Authentication Service (FAS), the request fails because the key size requested by the FAS server does not meet the updated minimum key size requirement defined in the certificate template.

Additionally, when attempting to add or authorize a new CA in FAS, the Microsoft Certificate Authority explicitly denies the certificate request.

The following error is displayed in the FAS console:

“The authorization request failed. The CA returned CR_DISP_DENIED (code 2)”

image.png

Additional Information

Alternative Option (Recommended Best Practice)

If security policy does not mandate 4096-bit keys, revert the certificate template minimum key size to: 2048 bits

This aligns with FAS default behavior and is the recommended configuration for logon scenarios.