Unable to make REST API call using the Client Certs to CCP.

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

Unable to make REST API call using the Client Certs to CCP.

L7 Applicator

Hi.

 

I'm trying to make a REST call from the Unix server to retrieve the credentials from Vault using the CCP.

 

  • The self-signed cert was created on Unix server (Client) and imported to CCP server.
  • The client certificate SN is added under the 'Authentication' tab in 'Application.
  • In the 'Allowed Machine' tab, the Unix server (Client) IP address is included.
  • In CCP server --> 'Require SSL' and 'Accept' Client certificate are enabled.

 

However, I'm getting the following error message which suggests that application is not able to get the client certificate details while trying to authenticate to AIMWebService.

 

Error: 500: APPAP330E: Failed to verify application authentication data: Could not obtain client certificate details.

 

Note: The authentication works fine without the use of SSL certificate. After removing the certificate SN from 'Authentication' tab , the REST call works fine.

 

If anyone has come across the same issue, can you please share your findings how the issue was fixed ?

 

Thanks

29 REPLIES 29

L5 Sessionator

Hi @Malhar Vora​, since you are getting the APPAP330E error, it means that your requests is will accepted by the CCP IIS server. However it complains not being able to read client certificate info. My guess is that your application on the Unix server does not successfully send client certificate info.

 

To verify this, on the CCP IIS server, you can switch "'Accept' Client certificate" to "'Require' Client certificate". If your receive a "Unauthorized" HTTP error, it means that you do not use your client certificate upon requesting the CCP. Which language are you using on the Unix server?

Hi @Sebastien Siegl​ Thanks for your reply. I'm using the curl script. I've changed the IIS parameters to 'Require' Client certificate and I'm getting the following errors.

 

  •  403 - Forbidden: Access is denied
  •  You do not have permission to view this directory or page using the credentials that you supplied.

OK so you are not using your client certificate to authenticate on the CCP. You need to figure out how to cert authenticate while using curl.

Hi @Sebastien Siegl​ :- what exactly need to be done ?

In the REST URL, add a switch for certificate and set the path for the Application cert. (All you need to do is pass the Appln cert's public key (cert in x.509 format) appended to the REST URL)

L4 Transporter

Same scenario - my HTTPS REST API call works without Client Cert Auth, but with Client Cert Auth - I get Access Denied, also the certs are correct (signed by same CA and Int CA)Field_Content_versions_oct20__0682J000007glu6QAA.png

 

L2 Linker

Hi,

I have exactly the same situation here - the BluePrism implementation and the same error. When trying to enforce the client certificate check (which is valid), if always fails as the above case. Funny enough, when I use the CURL.exe binary, it works just fine and I am able to fully enforce the client certificate check. But I keep failing when trying the same via PowerShell.

Any suggestion welcome.

Thanks

/Pavel

I cut my brain with this recently.You need to issue "[Net.ServicePointManager]::SecurityProtocol = 'TLS1','TLS2' " before executing the query.

 

Best way you can check is directly testing the CCP URL in the browser (after clearing cookies) and see if it prompts for client cert, then after confirming, it will output the password.

 

L2 Linker

i am getting same error during BluePrism testing. Please update if you found any solution for this error.

L3 Networker

did you try to test it manually..

L2 Linker

How do test it manually? actually https://<pimsite>/ is behing F5 for loadbalancer with external trust. hence struggling to complete the POC

L2 Linker

getting same error when we do test it RestAPI as below

L2 Linker

exact error as belwo.

 

ERROR: System Exception : Object Name: Jabil Common - Cyberark AIM Utilities

Action Name: Get Password

Exception Detail: Unexpected error Error during Web API HTTP Request

HTTP Status Code: 403

HTTP Response Content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

 

L3 Networker

you should be able to test from the unix machine itself using curl

  • 3662 Views
  • 29 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!