CCP Rest or SOAP WebService Does not work with Client Certificate Authentication

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

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

CCP Rest or SOAP WebService Does not work with Client Certificate Authentication

L4 Transporter

Team - Hello. I am working on Integrating RPA (BluePrism) with CCP and my integration works fine when I use only "Allowed Machines" Authentication (with http). When I tested the CCP web service URL (http) , i was able to retrieve the password from both REST & SOAP calls. But when i added the Client Certificate Authentication, the URLs did not work, rather when i tested it gave "403: Forbidden: Access Denied", below is the screenshot

 

 

Field_Content_versions_oct20__0682J000007gXnLQAU.png

 

 

I am not sure why the powershell REST calls failed for https. Please note I have checked everything like Client certificates (in .pfx) , IIS (Require SSL, Require Client Certs), Certificate serial no etc., Even enabled TLS .1 since powershell cmdlets require those, but no help. This is not load-balanced and safe membership is all set properly.

 

Can someone let me know what am i missing here, to get the cert based authentication working ?

 

Thanks in Advance.

1 accepted solution

Accepted Solutions

On your web server, do you have the Client Certificate stored (with the private key) in the personal certificates store?

 

Example from my host:

Field_Content_versions_oct20__0682J000007gat7QAA.png

 

Couple of other things to check:

Issuing CA is trusted by the IIS host and the full chain is trusted.

Intended purpose says Client Authentication.

View solution in original post

18 REPLIES 18

L7 Applicator

Check the IIS logs (actual request logs), there will be detailed error code in there... something like "403.15" which means something specific. Afaik there is also an option to diplay those detailed status codes to the user.

L1 Bithead

If you have multiple web hosts behind a load balancer is the cert installed on all of them, not just the one use you used create the CSR?

 

Also if you go to the REST CCP endpoint in a browser (with cert installed on client device) does it work? If you get the same error then the certificate isn't being accepted by the web hosts...

Thanks @Bernhard Brückler​ , I will check the IIS logs

Actually you are right , i was not able to browse the URL in browser, not sure why it says Access forbidden although we have client certificates

On your web server, do you have the Client Certificate stored (with the private key) in the personal certificates store?

 

Example from my host:

Field_Content_versions_oct20__0682J000007gat7QAA.png

 

Couple of other things to check:

Issuing CA is trusted by the IIS host and the full chain is trusted.

Intended purpose says Client Authentication.

Hello Yeah it is private key in IIS webstore, but the extended key usage is set for both 'Client & server Authentication' , and not just Client Authentication. Would that be a problem ? and yes CA is trusted

Actually no logs in CCP IIS in the event viewer and the code is 403.7

Why would the actual client certificate be on the web server? The client certificate & private key should be known *only* to the actual client app itself. The CCP IIS only needs to trust the CA that issued the client certs.

Correct I agree, that would be the problem. The Appln Private key should never leave the Application and ONLY the public key (x.509 cert) should be on CCP ISS. I will go ahead and do that, then test. Thanks

L1 Bithead

@Senthilkumar Kothandaraman​ 

Were you able to get it working ?

Hello Yea, there were couple of issues.

 

1) ALways Import the private key in CurrentUser & LocalComputer Personal store.

2) DO the below

Run the below command in Powershell from the Application machine - from the link https://stackoverflow.com/questions/27232340/mutual-certificates-authentication-fails-with-error-403...

Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject} | Format-List * | Out-File "c:\computer_filtered.txt"

If you see some List of Certificates in the output file above, perform the below registry modifications.

 

Set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL Value name: ClientAuthTrustMode Value type: REG_DWORD Value data: 2   Set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL Value name: SendTrustedIssuerList Value type: REG_DWORD Value data: 0 (False, or delete this key entirely

3) In Addition to the Above make sure you enabled ClientCertAuthentication in IIS

https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/authentication/clientce...

You can Ignore point 3)

@Senthilkumar Kothandaraman​ 

Thanks for the information.

I am trying to setup an application to use OS User + Cert Authn. will follow the steps described.

Q: In case of cert renewal or revocation, what would be the best approach to avoid service disruptions ?

 

TIA

You can add multiple cert serial numbers to an application authentication, and the app can then authenticate against CCP with either of them.

  • 1 accepted solution
  • 1591 Views
  • 18 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!