- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
04-25-2019 08:55 AM
Hi,
Was hoping the resident experts could provide some high level guidance on whether or not I'm going about it the correct way in my lab.
Background:
I then punched in the following required fields in Tenable's GUI:
Our Tenable person said it kicked back some errors on her side.
So am I approaching it the correct way? Is there a way to test things on the CyberArk side to rule out issues with my configuration? I'm probably missing something somewhere as AIM is new territory for me.
Thanks for any assistance.
04-25-2019 05:09 PM
@Davis Le Your configurations are looking good to me. I'd suggest you to validate your app and account on-boarding by executing powershell command which will call your CCP web server . If the below code returns the password, then we assume your configurations are good.
cls
# CHANGE REQUIRED IN THE VALUE FIELD
$ccphost = '0.0.0.0'
$appid = 'Backup-App'
$safe = 'Backup'
$credtofetch = 'svc_backup'
$credaddress = 'corpad.loc'
#execute REST API call
invoke-restmethod -Credential (get-credential) -uri https://compsrv01.corpad.loc/aimwebservice/api/accounts -method GET -Body @{AppID =
$appid; Safe = $safe; UserName = $credtofetch; Address = $credaddress; Reason = 'Powershell'}Have you defined internal application called AIMWebService? as far as my understanding it is mandatory.
If possible, share tenable side of error she is getting
Also have a look at the CCP logs by increasing the log levels
Good luck, let me know how it goes
04-26-2019 05:09 AM
1) I will look into increasing the logging levels.
2) Yes, I have defined the AIMWebService application as part of the AIM configuration per the vendor documentation. The Allowed Machines setting is set to the IP address of the AIM server itself.
3) Can you please clarify for Line 7 and 9 of your Powershell script what is the expected input?
Tenable engineer said she receives the following errors:
Thanks again. I really appreciate the help.
04-26-2019 12:31 PM
So I had to change tracks a little but basically re-created all my steps for Venafi integration. The script comes back successful if I run it using HTTP (instead of HTTPS) along with the AIM Server IP/FQDN.
If I try with HTTPS it throws the following error:
05-01-2019 06:48 AM
Hello Nirmal,
For the similar integration with Qualys I see an error "Failure reason: [APPAP008E Problem occurred while trying to use user in the Vault (Error: ITATS982E User AIMWebService is not defined. Diagnostic Info: 6)]:
To summarize I have not added any authentication on safe level and certificate binding is with self signed only.
While executing the PS script provide I see a below error .
05-01-2019 07:23 AM
Add the "AimWebService" account to the Safe. For CCP you have to add this account to the safe.
05-01-2019 08:49 AM
From experimenting with Nirmal's script, you can do 1 of 2 things (I'm still trying to figure out how to modify it to also allow testing of pulling credentials when you're using AIM/CCP on the PVWA instead of as a separate server):
1) Remove https and use http instead to test
2) Go into IIS and configure the website to Accept SSL connections
And like vivek.rautela_cybr mentioned, you should add the aimwebservice, AIM provider account, and local CyberArk account to the safe and give the required level of permissions.
The script will prompt you for a username/password when run and then you give it the username/password of the local CyberArk account. In my example, I was providing the username of Tenable-user and the password I configured for it in PVWA.
05-01-2019 11:56 PM
Hi@Pete Maan we are trying to retrieve the password via rest api call. The below PS script is working for HTTP but when we execute with HTTPS URL it is failing.. error screenshot is attached in the above thread.. Can you please advise what needs to be done to work with https? thanks in advance
# CHANGE REQUIRED IN THE VALUE FIELD
$ccphost = '0.0.0.0'
$appid = 'Backup-App'
$safe = 'Backup'
$credtofetch = 'svc_backup'
$credaddress = 'corpad.loc'
#execute REST API call
invoke-restmethod -Credential (get-credential) -uri https://compsrv01.corpad.loc/aimwebservice/api/accounts -method GET -Body @{AppID =
$appid; Safe = $safe; UserName = $credtofetch; Address = $credaddress; Reason = 'Powershell'}
05-02-2019 03:08 AM
Hello Vivek - Let me summarize my understanding :
Any Idea whats wrong I am doing ?
Also can you elaborate a bit about "Aimweb service" account .
05-02-2019 08:39 AM
@Nirmal (Community Member) - sounds like an issue with the binding of the CCP Web Service.
The web service can be validated by browsing to
Are any differences noted for the above 2 URLs?
For CCP/AIM password retrieval via PowerShell, my CredentialRetriever module makes life easy:
https://github.com/pspete/CredentialRetriever
Install-Module CredentialRetriever -scope CurrentUser
05-02-2019 08:50 AM
Also - the format for a CCP query is:
/AIMWebService/api/Accounts?<param1>=<value>&<param2>=<value>& ....Unless including the query in the body element is an undocumented feature..?
https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/AIM/Latest/en/Content/CCP/Calling-the-Web-Service-using-REST.htm#TheGetPasswordWebService
05-02-2019 08:55 AM
Hi Pete,
Thanks so much for chiming in and taking a look at what's going on with me and also for dnagarZU.
I was able to figure out the https issue (was an IIS configuration for me at least).
Do you happen to know what the URI would be (or how to look it up) for an instance where it exists on the same server as the PVWA?
For example: Venafi's documentation shows an example URI that it expects of https://[PVWA Host]/PasswordVault/Webservices/
However, the CyberArk documentation isn't clear in that regard and when I tried some amateurish attempts at modifying your script, it just gives a 404 error.
05-02-2019 10:23 AM
Even if CCP is on the same server as PVWA, the URL will be the same (unless default options were changed during install).
The URL you provide from the Venafi documentation is one for the (classic) Web Services API, it is not related to CCP.
05-02-2019 04:27 PM
Thanks so much @Pete Maan
Managed to get Tenable integration working the other day in the lab. However, Venafi seems to be a bit more finicky in what it's expecting although the fundamental parts on the CyberArk half of the integration should be the same as it is for Tenable integration.
We're encountering different errors with Venafi and certificate validation errors for the connector.
05-02-2019 09:26 PM
@Pete Maan :Thanks for your guidance so far would like to share a bit about my deployment.
Please guide
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!

