CCP AIMWebService failed with 403.16 during Client Authentication with Client Certificate
Symptom
When attempting to retrieve a password object via the Central Credential Provider (CCP) API using client certificate authentication, the request fails and the IIS web server returns a 403.16 error.
The IIS logs shows the request failed with the following error code:
sc-status=403, sc-substatus=16 and sc-win32-status=2148204809Environment
11.4;12.0;12.1;12.4;12.6;13.0;14.0;14.2 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Credential Provider
Cause
Starting with Windows Server 2012, stricter validation rules were introduced for the certificate store.
The Trusted Root Certification Authorities (i.e. Root) store can only have certificates that are self-signed. If that store contains non-self-signed certificates, client certificate authentication under IIS returns with a 403.16 error code. For more details, visit the Microsoft KB here.
Resolution
Follow the instructions available in Microsoft KB.
1) Open a PowerShell terminal as Administrator
2) Identify the non-selfsigned certificates installed in the Trusted Root Certification Authorities store:
Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject}
3) Run certlm.msc to open the Computer Certificate Store as Administrator, and move the problematic certificates to a different store. Alternatively, consider the following command available in the Microsoft KB shared above:
Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject} | Move-Item -Destination Cert:\LocalMachine\CA
4) Close the IIS Manager utility and restart the IIS server:
iisreset
Notes:
- If the problematic certificate is moved to the right repository but later it appears again in the root certificate store, then check if a GPO is reinstalling the certificate in the wrong repository ("gpupdate /force)
- If the problematic certificate has been moved to the right certificate store but IIS still shows the same message despite IIS has been restarted, a Windows server restart may be necessary to ensure all TCP connections are reset and IIS can properly handle new requests