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

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

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

L3 Networker

my bad.. if you are using Blueprism and can get access to the Bot server maybe you can test from there

Did it work when you tried to hit the direct CCP server instead of a LB ? Did you enable Client cert auth ?

yes it works and it prompt for cert for confirm then password display from Bot server

Bot server is windows based, wonder Curl works on windows?

Oh ok, LB works a bit different. Did you configure your LB IP as x-forward-header role ? there is a documentation that you may need to follow, i believe you have to edit the web.config in our CCP servers and update the 'Transparent Proxies' with your LB IP. In addition you may need to add the LB IP as well into Machine Authentication on your AppiD.

Thank you so much Senthil. it would be great if you provide the link or attach the document for configuration.

 

Can you please provide some examples for this "In addition you may need to add the LB IP as well into Machine Authentication on your AppiD."

 

 

 

https://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CCP/Load-Balancing-the-Cen...

 

For the Second part it is just to add the LB IP in "Allowed Machines" tab on the App id.

Thank you ... Let me try and will share the results...

Hi Senthil.. Great work.. I have tried as you said.. it is working perfect. thank you so much ..

certificate properties usually has CRL distro pointer, check if your CCP server can communicate with Cert Revocation List PKI infrastructure to validate if cert is valid. If IIS debugging enabled look at exact IIS error in the logs it might give you a clue where to look next 403 error can have sub sections 403.xx...

Hello,

 

Did you resolved the issue?

Hi Kamil,

here is a sample PowerShell script, which is working for me just fine. I think the main issue in the above code is the certificate reference.

 

#Variables

$CCPHost    = "ccp.lab.local"

$appID     = "CCP-Testing"

$safe      = "TEST"

$accountObject = "Operating System-WinDomain-lab.local-Administrator"

$certThumbprint = "50b33e6f1428073d1233954d4d0b5187c60ddd69"

 

#Cert ‎Serial (for PVWA) 171932EFED580EAE460ADB7ED6F03212

 

#If calling the cert from Current User cert store:

#$certPath = "Cert:\CurrentUser\My\" + $certThumbprint

 

#If calling the cert from Local Machine cert store:

$certPath = "Cert:\LocalMachine\My\" + $certThumbprint

 

$myCert = Get-ChildItem -Path $certPath

 

#Write-Host = $myCert

 

$uriString = "https://" + $CCPHost + "/AIMWebService/api/Accounts?AppID=" + $appID + "&Query=Safe=" + $safe + ";Object=" + $accountObject

$content = Invoke-RestMethod -Method Get -Uri $uriString -ContentType application/json -Certificate $myCert

 

Write-Host $content

 

Please try this one and update the status here.

Rgds,

-pt-

Please add the client certificate with the private key on the CCP server, and then add the public key of the certificate to the user's current store from the App server

L1 Bithead

Hi @Malhar Vora​  : Were you able to solve this issue? If yes, can you provide the exact curl command which you used?

@Pavel Tajanovsky​  Worked for me too! Thanks

  • 3934 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!