- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-20-2024 10:41 AM
We could use curl to retrieve the password using Client Certificate and ignoring SSL Certificate in Linux Boxes. Now, we are trying to enforce SSL Certificate requirement under AIM Webservice to retrieve the password in Linux boxes. So, to achieve SSL Enforcement, I was aware that I can just bind the certificate for 443 in Default website and that's done. However, reading the document, under "Configure SSL". At # 3.C. It mentions that "On the application machine, make sure that you have a corresponding server certificate. Store this certificate in the trusted certificates store."
I can understand that If I have Windows boxes then I can store same SSL in client boxes in Trusted Root Stores, BUT why we need to store SSL certificate in client boxes since this is SSL?
Secondly, If I need to store in linux boxes then where and what format it should be? I think just original format of .p12/.pfx/.cert file of SSL may not work.
Any guidance on this?
Central Credential Provider web service configuration | CyberArk Docs
11-20-2024 01:49 PM
On the CCP server(s) you also need to configure IIS (SSL Settings for the AIMWebService site) to Ignore, Accept, or Require client certificates. There is no need to have the Client Certificate itself on the CCP server, assuming it has the Root CA and any INT CAs that issued it. (as would be expected in most enterprises).
11-20-2024 01:55 PM
Hi @Todd Sherwin Client Certificate needs to be on CCP and client box. otherwise it won't/didn't work. mine had not that case as your explanation. I am just worried about SSL. Does SSL need to be in client box too? What to do if SSL needs to be in linux client box ? Any special steps needed to be taken care of?
11-20-2024 02:01 PM
The client cert needs to be installed on the calling host, and the thumbprint of the client cert needs to be in the API call to the CCP. Your client certs must have a different CA. This is a common misconception, but the client cert does not always need to be installed on the CCP. We do tons of CCP, all with client certs. Then obviously the S/N of the cert (not the thumbprint) added to the auth methods of the AAM appID.
11-20-2024 02:05 PM
Initially, I was also thinking same thing that client certificate needs to be just in client however it didn't work. Putting client cert in both CCP and client( linux) machine worked. I am very thankful to your comments. What about SSL cert then? Official documents mentions that SSL cert should be in CCP as well as in client box. It is quite not making sense to me. How had you worked on SSL cert for both windows and linux case using CCP?
11-20-2024 07:00 PM
We don't use Linux, but require SSL and client certs, and for a long time were also working under the assumption that the client cert needed to be installed on the CCP. Again this 100% is not the case. But only if your client cert is issued by a CA that your CCP already trusts (example: an internal CA).
11-20-2024 07:01 PM
$appID = "xxxxx"
$safe = "xxxxx"
$username = "xxxxx"
$reason = "xxxxx"
$thumbprint = "xxxxx"
$baseURL = "https://xxxxx.com"
# Retrieve client certificate from my local store
$Cert = Get-ChildItem Cert:\CurrentUser\My | Where-Object {$_.Thumbprint -like $thumbprint}
if (-not $Cert) {
Write-Error "Certificate with thumbprint $thumbprint not found!"
exit
}
$uri = "${baseURL}/AIMWebService/api/Accounts?AppID=${appID}&Safe=${safe}&UserName=${username}&Reason=${reason}"
$response = (Invoke-RestMethod -Uri $uri -Method Get -ContentType application/json -Certificate $Cert)
11-20-2024 07:12 PM
Okay You just installed client cert in client box and configured Serial number in PVWA? Thats all?
For SSL certificates, you just installed in CCP. Thats all right?
11-20-2024 07:13 PM
Yes I am aware about this script which is based on Certificate client authentication. Thanks for sharing
11-28-2024 05:59 AM
Hi @sanjay sah
It seems that todd_sherwin provided an answer to your question. Could you kindly let us know if this solution helped?
If so, please mark the answer as 'Select as Best' to assist other community members.
Thank you, Liad
12-03-2024 02:24 PM
I was asking about SSL, I myself tested with Linux and Windows client boxes. So, conclusion is SSL just needs to be only in CCP server not in Client boxes where official document has misguided. Client Certificate should be both in Client box and CCP servers and It went well. I am fine now.
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!

