CCP Query with Certificate Authentication

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

CCP Query with Certificate Authentication

L3 Networker

Hi All,

 

I created CCP Application with Certificate Authentication. But its not working and giving me an error.

When am not using Certificate Serial number in CCP Application the script is working fine and its able to get fetch the SSH key from the account.

But When I add Certificate Serial number in the CCP config its giving me an error.

$ ./cyberark_test.sh

Vault Response:

{"ErrorCode":"APPEX003E","ErrorMsg":"The Credential Provider has encountered an error. For more information, see the Credential Provider logs."}

 

And the log from CCP as follows.

 

[28/03/2026 | 19:18:57] | :: | APPAU006E Provider Prov_SU0V02808600 has failed to fetch password with query [Object=PI_UnixSSHKeys-**********.int.be.xpi.net.intra-cybr-srv-a100053-a-g-n1;Safe=Ansible-CCP-Test] for application [Ansible] for IP address [**.**.*.*]. Fetch reason: []. Failure reason: [APPAP330E Failed to verify application authentication data: Could not obtain client certificate details.]

 

So I tried to follow below article

 

https://community.cyberark.com/s/article/CCP-Error-APPAP330E-Failed-to-verify-application-authentica...

 

But after this IIS change am not getting any error in the script and CCP logs but the script not giving SSH key as output. Like below.

 

$ ./cyberark_test.sh

Vault Response:

 

So the vault response is empty. and I understand that request is stopped by IIS and its not reached to CCP.

 

I Have all my key, cert files in the server.

-rwxrwxr-x. 1 cybr-srv-cs32503-a-n cybr-srv-cs32503-a-n 1.7K Mar 26 10:38 CYBERARK_AP27205_DEV.key

-rwxrwxr-x. 1 cybr-srv-cs32503-a-n cybr-srv-cs32503-a-n 1.1K Mar 26 10:38 CYBERARK_AP27205_DEV.csr

-rwxrwxr-x. 1 cybr-srv-cs32503-a-n cybr-srv-cs32503-a-n 2.2K Mar 26 10:51 CYBERARK_AP27205_DEV.crt

 

Can someone help me to fix this. Or can someone help me with any sample script.

 

Thanks,

Subash

5 REPLIES 5

L4 Transporter

We've been using CCP with client auth for quite some time. A recent issue we noticed was after having moved to a new certificate authority (assuming of course the CCP has the Trusted Root and the INT CA, and your call is retrieving the certificate properly) the application team had to import the client certificate in PFX format, and not CER. With CER we were getting the error you described. Removed it and imported the PFX (which included the Private Key). Back to working again.

L3 Networker

I tested certificate authentication for CCP a few weeks ago in my lab. The CCP documentation is somewhat incomplete. I quickly reviewed the article and had the same impression.

In my opinion, the best approach is to follow this video by Joe, which provides a clear and practical walkthrough:

https://www.youtube.com/watch?v=ftLDquGxE9U&t=3830s

If you'd like, we can go through it together.

Hi @l b​ 

 

Thank you for the Video. Now I made all the changes in CCP. I have added Certificate Subject CN in IIS to allow. But still its empty output. I tried to run the script in debug mode and here is the output.

 

$ ./cyberark_test1.sh

=== REQUEST ===

URL: https://***********.int.be.xpi.net.intra/AIMWebService/api/Accounts?AppID=Ansible&Safe=Ansible-CCP-Test&Object=PI_UnixSSHKeys-***********.int.be.xpi.net.intra-cybr-srv-a100053-a-g-n1

Cert: ./CYBERARK_DEV.crt

Key: ./CYBERARK_DEV.key

CA:  ./CYBERARK_DEV_bundle.pem

Serial (local): *****************************

 

*  Trying **.**.**.**...(IP of CCP)

* TCP_NODELAY set

* Connected to ************.int.be.xpi.net.intra (**.**.**.**) port 443 (#0) ( CCP Server connect from Source)

* ALPN, offering http/1.1

* successfully set certificate verify locations:

*  CAfile: ./CYBERARK_DEV_bundle.pem ( I have added Application Key, cert, root and intermediate certs here)

 CApath: none

} [5 bytes data]

* TLSv1.3 (OUT), TLS handshake, Client hello (1):

} [512 bytes data]

* TLSv1.3 (IN), TLS handshake, Server hello (2):

{ [100 bytes data]

* TLSv1.2 (IN), TLS handshake, Certificate (11):

{ [3378 bytes data]

* TLSv1.2 (IN), TLS handshake, Server key exchange (12):

{ [365 bytes data]

* TLSv1.2 (IN), TLS handshake, Server finished (14):

{ [4 bytes data]

* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):

} [102 bytes data]

* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):

} [1 bytes data]

* TLSv1.2 (OUT), TLS handshake, Finished (20):

} [16 bytes data]

* TLSv1.2 (IN), TLS handshake, Finished (20):

{ [16 bytes data]

* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384

* ALPN, server accepted to use http/1.1

* Server certificate:

* subject: O=Group; OU=Applications; title=Certis; CN=*********************

* start date: Dec 11 08:39:45 2025 GMT

* expire date: Dec 11 08:39:45 2027 GMT

* subjectAltName: host "************.int.be.xpi.net.intra" matched cert's "**********.int.be.xpi.net.intra"

* issuer: O=Group; OU=APPLICATIONS; OU=iPKI; CN=2014-2029 BNPP Applications

* SSL certificate verify ok.

} [5 bytes data]

> GET /AIMWebService/api/Accounts?AppID=Ansible&Safe=Ansible-CCP-Test&Object=PI_UnixSSHKeys-********.int.be.xpi.net.intra-cybr-srv-a100053-a-g-n1 HTTP/1.1

> Host: ******.int.be.xpi.net.intra

> User-Agent: curl/7.61.1

> Accept: application/json

> Content-Type: application/json

>

{ [5 bytes data]

* TLSv1.2 (IN), TLS handshake, Hello request (0):

{ [4 bytes data]

* TLSv1.2 (OUT), TLS handshake, Client hello (1):

} [512 bytes data]

* TLSv1.2 (IN), TLS handshake, Server hello (2):

{ [109 bytes data]

* TLSv1.2 (IN), TLS handshake, Certificate (11):

{ [3378 bytes data]

* TLSv1.2 (IN), TLS handshake, Server key exchange (12):

{ [365 bytes data]

* TLSv1.2 (IN), TLS handshake, Request CERT (13):

{ [30 bytes data]

* TLSv1.2 (IN), TLS handshake, Server finished (14):

{ [4 bytes data]

* TLSv1.2 (OUT), TLS handshake, Certificate (11):

} [3152 bytes data]

* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):

} [102 bytes data]

* TLSv1.2 (OUT), TLS handshake, CERT verify (15):

} [264 bytes data]

* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):

} [1 bytes data]

* TLSv1.2 (OUT), TLS handshake, Finished (20):

} [16 bytes data]

* TLSv1.2 (IN), TLS handshake, Finished (20):

{ [16 bytes data]

< HTTP/1.1 403 Forbidden

< Content-Type: text/html

< Server: Microsoft-IIS/10.0

< Date: Wed, 01 Apr 2026 13:55:51 GMT

< Content-Length: 1233

 

Looks like the Source Server is able to verify the CCP servers certificate and TLS handshake also working fine. But still IIS which is installed in CCP is not allowing the request.

Am I doing anything wrong ?

 

Thanks,

Subash

Hi,

Sorry, my PVWA in the lab environment is not working at the moment, and I don’t have enough time right now to fix it and run proper tests (such as changing the application configuration).

 

However, here are some suggestions that might help you troubleshoot your issue:

I believe you are trying to integrate CCP with Ansible. For now, I recommend not using the Ansible interface and instead testing the requests manually directly from the Ansible server.

 

First, try making a request without a certificate, you need to remove the certificate serial number from your application id, for example:

 

curl -vk "https://ccp-service.link.local/AIMWebService/api/accounts?AppId=test-ccp&object=server02"

 

If that works, then try again using the certificate, add back the cetificate number at the application id then try this:

 

curl -vk --cert key8.pfx:<password> --cert-type P12 "https://ccp-service.link.local/AIMWebService/api/accounts?AppId=test-ccp&object=server02"

 

Also, keep in mind that every time you make changes to the Application ID configuration, you should restart the CyberArk Application Password Provider service so the changes can take effect.

 

Regarding IIS, my configuration is similar to the one shown in the images below.

 

image 

image 

image.pngAdditionally, my certificate was issued by the same internal CA (link-CA).

Hi @l b​ 

 

When I query without Certificate using below am able to get the SSH key from Cyberark.

 

curl -vk --http1.1 "https://ccp-service.link.local/AIMWebService/api/accounts?AppId=test-ccp&object=server02"

 

But when I use Certificate in the script its failing. I made same changes in IIS which you showed above. And no logs is coming to APPAudit. Enabled BEBUG as well. Here is the error am seeing in IIS log.

 

2026-04-01 15:57:36 55.32.8.4 GET /AIMWebService/api/Accounts AppID=Ansible&Safe=Ansible-CCP-Test&Object=PI_UnixSSHKeys-*******.int.be.xpi.net.intra-cybr-srv-a100053-a-g-n1 443 - 55.32.7.42 curl/7.61.1 - 403 13 2148081683 1400 284 42065

 

Looks like IIS is giving 403 when request received. And its not reached to CCP. Can you help me to fix this.

 

Thanks,

Subash.

  • 104 Views
  • 5 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!