CyberArk CCP on Windows Server 2022: TLS, PKI, and Authentication Pitfalls

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CyberArk CCP on Windows Server 2022: TLS, PKI, and Authentication Pitfalls

L0 Member

Deploying CyberArk Central Credential Provider (CCP) on Windows Server 2022 brings some modern security defaults that, ironically, can break traditional IIS client certificate authentication.

I recently integrated a new CCP node into a load-balanced environment. While the installation was standard, the OS-level changes in Server 2022 threw a few curveballs. Here’s a technical deep dive into the issues and the exact commands I used to fix them.

1. The TLS 1.3 Handshake Deadlock

On Windows Server 2022, TLS 1.3 is enabled by default. However, TLS 1.3 removed the "renegotiation" mechanism that IIS traditionally uses to request a client certificate. This often results in a generic "Connection Reset" before the user even sees a certificate prompt.

The Fix: To maintain compatibility with IIS client cert auth, you need to force the server to use TLS 1.2 for the Web Service. I used the following registry commands to disable TLS 1.3 for the Schannel provider:

 

# Disable TLS 1.3 Server-Side

New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Server" -Force

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Server" -Name "Enabled" -Value 0 -PropertyType DWord

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Server" -Name "DisabledByDefault" -Value 1 -PropertyType DWord

 

# Restart the server for changes to take effect

Restart-Computer

 

2. Solving the 403.16 "Untrusted Root" Mystery

After fixing TLS, you might hit a 403.16 - Client certificate is untrusted or invalid error. This usually happens when the IIS trust store is "polluted" with non-self-signed certificates in the Trusted Root container.

The Fix:

You can identify these "intruder" certificates using PowerShell. Any certificate in the Root store that isn't self-signed (where Issuer is not equal to Subject) will break the chain:

 

# Find non-self-signed certificates in the Root store

Get-Childitem cert:\LocalMachine\root -Recurse | 

  Where-Object {$_.Issuer -ne $_.Subject} | 

  Format-List FriendlyName, Subject, Issuer, Thumbprint

 

Resolution: Move any identified intermediate certificates to the Intermediate Certification Authorities store. Windows certificate chain building logic expects a clean separation between Root and Intermediate stores. Misplacement can cause chain validation to fail even if the certificate appears trusted.

3. Generating SAN CSRs via CLI

When deploying behind a Load Balancer, your certificate needs a Subject Alternative Name (SAN). Since the IIS GUI is limited, I recommend using a request.inf file and certreq to generate the CSR:

Create request.inf:

 

[NewRequest]

Subject = "CN=ccp-lb.yourdomain.com, OU=Security, O=YourOrg, L=Calgary, S=Alberta, C=CA"

Exportable = TRUE

KeyLength = 2048

MachineKeySet = TRUE

[Extensions]

2.5.29.17 = "{text}dns=ccp-lb.yourdomain.com&dns=ccp01.yourdomain.com"

 

Generate CSR:

 

certreq -new request.inf request.csr

 

4. End-to-End Validation

Once configured, verify the credential retrieval using PowerShell. This bypasses browser caching and gives you raw visibility into the handshake:

 

# Load the client certificate from the local store

$cert = Get-ChildItem Cert:\LocalMachine\My | Where-Object { $_.Thumbprint -eq "YOUR_CERT_THUMBPRINT" }

 

# Test the AIM Web Service API

$url = "https://<CCP_LB_URL>/AIMWebService/api/Accounts?AppId=<AppID>&Object=<ObjectName>"

$response = Invoke-WebRequest -Uri $url -Certificate $cert

$response.Content

 

Final Thoughts

The move to Windows Server 2022 requires more than just "Next -> Next -> Finish." If you are migrating from Server 2019, account for the protocol shifts in Schannel and maintain strict PKI hygiene in your certificate stores.

If you are seeing CERT_E_UNTRUSTEDROOT or protocol resets, start with the TLS registry keys and the Root store audit script above. It’ll save you hours of debugging.

Security hardening at the protocol layer (like TLS 1.3 adoption) can surface hidden dependencies in legacy authentication flows. Always validate authentication models during OS upgrades — not just connectivity.

#CyberSecurity #IAM #CyberArk #WindowsServer2022 #PKI #IdentitySecurity

6 REPLIES 6

L5 Sessionator

I have been using 2022 and Certificate Authentication and what actual issue you are getting?

L1 Bithead

@sanjay sah​ I am using Cert Based authentication in Windows 2022, i am getting error "Request aborted. Could not create SSL/TLS Secure channel"

I have checked "Disable TLS 1.3 over TCP" under IIS. Anything else i need to do to make it work.

Well that should not be the reason as I never touched those part while configuring as I didn't had to touch. Did you configure IIS with Certificate in order to authenticate client properly?

Follow this one. if you cannot get it then let me know. Make sure you do not install cert in CCP server because this video shows you to install and that is optional.

https://youtu.be/ftLDquGxE9U?si=pSJ12LRWgMOHolM2

L1 Bithead

@sanjay sah​ Same config is working on Windows Server 2019 but on 2022 its failing, anything that you can suggest?

 

messaged u

  • 260 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!