- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
The current Idira CCP load-balancing guidance and Avi/Broadcom load-balancer docs are the basis for this guide.
The key Idira points are: SSL termination requires TrustedProxies and X-Forwarded-For if Allowed Machines authentication must resolve the real requester IP; the X-Forwarded-For header must contain only one IP; and client-certificate authentication behind SSL termination requires CCP to receive a Base64 client certificate in a configured HTTP header such as X-Client-Certificate.
Idira also documents that CCP HTTPS should be configured in IIS and that client-certificate authentication can be required at the AIMWebService endpoint when the client certificate is presented directly to IIS.
∞ https://docs.cyberark.com/credential-providers/latest/en/content/ccp/configure_ccpwindows.htm
Avi supports SSL/TLS termination at the virtual service, health monitors, and Layer 4 virtual services for transport-layer load balancing.
Replace these with the real values.
|
Item |
Example |
|
CCP VIP FQDN |
ccp.company.com |
|
CCP VIP IP |
10.10.50.100 |
|
CCP Node 1 |
ccp01.company.com / 10.10.50.11 |
|
CCP Node 2 |
ccp02.company.com / 10.10.50.12 |
|
CCP Node 3 |
ccp03.company.com / 10.10.50.13 |
|
Service port |
443 |
|
CCP REST path |
/AIMWebService/api/accounts |
|
Optional health path |
/lbhealth/health.txt |
|
X-Forwarded-For header |
X-Forwarded-For |
|
Client cert header, if SSL termination is used |
X-Client-Certificate |
Complete these checks before configuring Avi.
From a test client that is allowed to retrieve credentials, test each CCP server directly.
Without client certificate
curl.exe -vk "https://ccp01.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Objec..."
With client certificate
curl.exe -vk --cert "C:\Temp\client.pem" --key "C:\Temp\client.key" "https://ccp01.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Objec..."
Repeat against each CCP node:
curl.exe -vk "https://ccp02.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Objec..."
curl.exe -vk "https://ccp03.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Objec..."
Important! Do not proceed with load balancing until each CCP server works directly.
In PVWA or Privilege Cloud:
1. Go to **Applications**.
2. Locate the application named **AIMWebService**.
3. Confirm the same `AppID` is used by all CCP web service nodes.
4. Confirm the required authentication method is configured:
On each CCP server:
1. Open **IIS Manager**.
2. Go to **Sites > Default Web Site**.
3. Select **Bindings**.
4. Confirm there is an HTTPS binding on TCP `443`.
5. Confirm the certificate is valid and trusted by clients.
For SSL passthrough, the certificate presented by each CCP node should match the hostname clients use. In most load-balanced designs, that means each CCP server should present a certificate containing the VIP FQDN, for example `ccp.company.com`, in the Subject Alternative Name.
CCP account retrieval endpoints are not ideal health-check endpoints because they usually require application authentication and may expose unnecessary audit noise.
Recommended health-monitor options:
1. TCP/443 monitor
2. HTTPS monitor to a static health file
3. HTTPS monitor to AIMWebService
This is optional but useful for SSL termination or SSL re-encryption designs.
Perform this on every CCP server.
1. Create the health folder and file
Open PowerShell as Administrator.
New-Item -Path "C:\inetpub\wwwroot\lbhealth" -ItemType Directory -Force
Set-Content -Path "C:\inetpub\wwwroot\lbhealth\health.txt" -Value "OK" -Encoding ASCII
2. Confirm NTFS permissions
icacls "C:\inetpub\wwwroot\lbhealth"
The IIS application pool identity or standard IIS read identity must be able to read the file.
3. Test locally
curl.exe -vk "https://localhost/lbhealth/health.txt"
Expected result:
OK
4. Test remotely
From another machine:
curl.exe -vk "https://ccp01.company.com/lbhealth/health.txt"
curl.exe -vk "https://ccp02.company.com/lbhealth/health.txt"
curl.exe -vk "https://ccp03.company.com/lbhealth/health.txt"
Note: If the AIMWebService folder requires client certificates, do not place the health file under the AIMWebService application unless the monitor can present the required client certificate. A separate folder under the default web site is usually cleaner.
Use SSL termination when:
Avoid SSL termination when:
Note: For client-certificate based CCP authentication, SSL passthrough is usually the simpler and safer option.
Application Client
|
| HTTPS to ccp.company.com
v
Avi Virtual Service
|
| HTTPS re-encryption to CCP node
v
CCP01 / CCP02 / CCP03
Recommended backend mode:
Client → Avi: HTTPS
Avi → CCP: HTTPS
Avoid sending clear-text HTTP from Avi to CCP unless the customer explicitly accepts that risk.
One will typically create or verify the following Avi objects:
1. SSL certificate for the VIP.
2. SSL profile.
3. Application profile.
4. Health monitor.
5. Pool containing the CCP servers.
6. Virtual service using the VIP.
7. Optional HTTP policy to insert or preserve required headers.
In Avi Controller:
1. Go to Templates > Security > SSL/TLS Certificates.
2. Click Create or Import.
3. Import the certificate for the CCP VIP FQDN.
4. Include the private key.
5. Include the certificate chain if required.
6. Save the certificate.
The certificate must be trusted by all application clients that call CCP through the VIP.
In Avi Controller:
1. Go to Templates > Security > SSL/TLS Profile.
2. Use an existing secure profile or create a new one.
3. Confirm the profile allows TLS versions and ciphers approved by the customer.
4. Save the profile.
Recommended:
Recommended monitor for SSL termination with static health file
In Avi Controller:
1. Go to Templates > Profiles > Health Monitors.
2. Click Create.
3. Choose HTTPS.
4. Configure:
5. Configure timing values:
6. Save the monitor.
Alternative monitor
Use a TCP/443 monitor if:
In Avi Controller:
1. Go to Applications > Pools.
2. Click Create Pool.
3. Configure:
4. Add the CCP servers:
5. Enable SSL to the backend servers if Avi is re-encrypting traffic to CCP.
6. Configure backend SSL validation according to the customer’s standard:
7. Save the pool.
Recommended:
In Avi Controller:
1. Go to Applications > Virtual Services.
2. Click Create Virtual Service.
3. Choose Advanced Setup if available.
4. Configure:
5. Save the virtual service.
For Allowed Machines authentication, CCP must be able to identify the original requester IP.
In Avi, enable insertion of the `X-Forwarded-For` header on the HTTP profile or through an HTTP request policy.
Important requirements:
Recommended behavior:
X-Forwarded-For: <original_client_ip>
Not recommended:
X-Forwarded-For: <client_ip>, <proxy_ip>, <another_proxy_ip>
Important! Idira expects only one IP in the header.
Avi normally sends the PEM wrapper envelope containing the certificate, but that is not readable by CCP. Adjust the AVI load-balancer to ensure only the certificate content between the BEGIN CERTIFICATE and END CERTIFICATE lines is placed all on one line with line breaks removed is then base64-encoded and sent to the CCP server.
The PEM wrapper envelope header value is effectively:
-----BEGIN CERTIFICATE----- MIIF... -----END CERTIFICATE-----
The expected target value is:
MIIF...base64 certificate body only...==
A dataScript is needed in Avi to ensure the header contains the expected content.
local cert = avi.ssl.client_cert()
if cert then
-- Remove the PEM header and footer boundaries
local clean_cert = string.gsub(cert, "%-%-%-%-%-BEGIN CERTIFICATE%-%-%-%-%-", "")
clean_cert = string.gsub(clean_cert, "%-%-%-%-%-END CERTIFICATE%-%-%-%-%-", "")
-- Strip out all whitespaces, newlines (\n), and carriage returns (\r)
clean_cert = string.gsub(clean_cert, "%s+", "")
-- Inject the clean, raw Base64 string into the header
avi.http.add_header("X-Client-Certificate", clean_cert)
end
On each CCP server, edit:
C:\inetpub\wwwroot\AIMWebService\web.config
Locate the `appSettings` section and add or update:
<add key="TrustedProxies" value="10.10.50.100"/>
Note: If Avi source IPs are different from the VIP, use the Avi Service Engine IPs or SNAT addresses that the CCP servers actually see as the source.
Example:
<add key="TrustedProxies" value="10.10.50.21,10.10.50.22"/>
Note: One can also use ranges or CIDR notation if appropriate:
<add key="TrustedProxies" value="10.10.50.20-10.10.50.30,10.10.60.0/24"/>
Then restart IIS:
iisreset
Important:
Only perform this section if the customer uses CCP client-certificate authentication and insists on SSL termination.
In this design, Avi receives the client certificate during the TLS handshake. CCP does not receive the original TLS client certificate directly. Therefore, Avi must pass the client certificate to CCP in an HTTP header.
On each CCP server, edit:
C:\inetpub\wwwroot\AIMWebService\web.config
Add or uncomment:
<add key="ClientCertificateHTTPHeaderFieldName" value="X-Client-Certificate"/>
Then restart IIS:
iisreset
On Avi, configure the virtual service or HTTP request policy to insert the client certificate into the request header:
X-Client-Certificate: <Base64-encoded client certificate>
Important:
If Avi is terminating the client TLS session and CCP is authenticating the client certificate from an HTTP header, IIS on the CCP node should not require the original client certificate from the application client because that certificate is not part of the backend TLS session.
For the AIMWebService endpoint, verify IIS SSL Settings:
1. Open IIS Manager.
2. Go to Sites > Default Web Site > AIMWebService.
3. Open SSL Settings.
4. Keep Require SSL enabled.
5. For Client certificates, use the setting appropriate for the design:
SSL Terminate Note: If IIS is set to Require client certificates and Avi does not present one to the backend CCP server, the backend connection will fail before CCP can process the request. Instead, select Accept and CCP will validate and authentication the application server based on the certificate details received in the X-Client-Certificate header.
For applications using Allowed Machines authentication:
1. Go to Applications.
2. Open the relevant application, not necessarily AIMWebService.
3. Go to Allowed Machines.
4. Add the real application client IPs or hostnames.
5. Do not add the Avi VIP as a substitute for the real application client unless the customer intentionally accepts that security tradeoff.
If `X-Forwarded-For` and `TrustedProxies` are configured correctly, CCP should evaluate the real application client IP.
If they are not configured correctly, CCP may evaluate the Avi IP instead.
Use SSL passthrough when:
This is usually the best option for CCP environments using mutual TLS.
Application Client
|
| HTTPS / TLS directly to CCP through VIP
v
Avi Layer 4 Virtual Service
|
| TCP/443 passthrough
v
CCP01 / CCP02 / CCP03
In this model:
Because the client TLS session terminates on the CCP server, each CCP node must present a certificate trusted by the client.
Recommended certificate design:
Caution: If each CCP server presents only its own node-specific certificate, clients connecting to `https://ccp.company.com` may receive a hostname mismatch.
With SSL passthrough, Avi cannot insert `X-Forwarded-For` because it cannot inspect or modify the encrypted HTTP request. Therefore, if CCP Allowed Machines authentication depends on the real application client IP, the load-balancing design must preserve the original client IP to the CCP servers.
Recommended:
Caution: If Avi SNAT is used and the CCP servers only see Avi Service Engine IPs, Allowed Machines authentication will evaluate the Avi IP instead of the real application IP. That weakens the design and can cause authentication mismatches. If preserving source IP is not possible, use certificate-based CCP authentication rather than relying only on source IP.
In Avi Controller:
1. Go to Templates > Profiles > Health Monitors.
2. Click Create.
3. Choose TCP.
4. Configure:
5. Save the monitor.
A TCP monitor is preferred for SSL passthrough because an HTTPS monitor may fail when IIS requires client certificates.
In Avi Controller:
1. Go to Applications > Pools.
2. Click Create Pool.
3. Configure:
4. Add the CCP servers:
5. Do not enable HTTP-specific features for this pool.
6. Save the pool.
In Avi Controller:
1. Go to Applications > Virtual Services.
2. Click Create Virtual Service.
3. Use Advanced Setup if available.
4. Configure:
5. Do not attach an SSL certificate to the virtual service.
6. Do not enable SSL termination on the virtual service.
7. Save the virtual service.
Note: Depending on the Avi version and UI labels, this may appear as a Layer 4 virtual service, TCP profile, TCP proxy, or non-SSL service on port 443. The important design point is that Avi should pass TCP/443 to the CCP servers without decrypting or modifying TLS.
If Allowed Machines authentication depends on client source IP, verify that the real client IP reaches the CCP server. In Avi, review the virtual service and pool network settings for source NAT / client IP preservation.
Target behavior:
Client IP seen by CCP = real application client IP
Problem behavior:
Client IP seen by CCP = Avi Service Engine IP
After enabling source IP preservation, confirm routing is correct:
On each CCP server:
1. Open IIS Manager.
2. Go to Sites > Default Web Site > AIMWebService.
3. Open SSL Settings.
4. Enable Require SSL.
5. Under Client certificates, select:
6. Apply the setting.
7. Restart IIS if needed:
iisreset
Create or update DNS so the CCP VIP FQDN resolves to the Avi VIP.
Example:
ccp.company.com -> 10.10.50.100
From a client machine:
Resolve-DnsName ccp.company.com
Expected result:
Name: ccp.company.com
Address: 10.10.50.100
At minimum, allow:
|
Source |
Destination |
Port |
Purpose |
|
Application clients |
Avi VIP |
TCP/443 |
CCP API requests |
|
Avi Service Engines |
CCP servers |
TCP/443 |
Load-balanced traffic |
|
Avi Service Engines |
CCP servers |
TCP/443 |
Health monitors |
|
CCP servers |
Idira Vault / Privilege Cloud backend |
Required Idira ports |
CCP backend communication |
|
Admin workstation |
Avi Controller |
TCP/443 |
Avi administration |
For SSL passthrough with source IP preservation, firewall rules may need to allow the original application client IPs to reach the CCP servers through the Avi data path.
From a client machine:
Test-NetConnection ccp.company.com -Port 443
Expected:
TcpTestSucceeded : True
curl.exe -vk "https://ccp.company.com/lbhealth/health.txt"
For SSL termination, the certificate should be the Avi VIP certificate.
For SSL passthrough, the certificate should be the certificate installed on the selected CCP backend node.
curl.exe -vk "https://ccp.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Object=..."
Expected:
If authentication fails, review:
curl.exe -vk --cert "C:\Temp\client.pem" --key "C:\Temp\client.key" "https://ccp.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Object=..."
Expected:
For SSL passthrough, the client certificate should be visible to IIS/CCP directly.
For SSL termination, the client certificate must be passed to CCP in the configured HTTP header.
On the CCP server that handled the request, review IIS logs:
C:\inetpub\logs\LogFiles\W3SVC*
Look for:
For SSL passthrough with source IP preservation, `c-ip` should be the real application client IP.
For SSL termination with X-Forwarded-For, `c-ip` may be the Avi IP, but CCP should use the `X-Forwarded-For` header after validating the request source against `TrustedProxies`.
Typical CCP logs are located under the Idira component log directories and/or the AIMWebService log path depending on version and installation.
Review:
AIMWSTrace.log
AIMWS.log
AppProvider logs
Credential Provider logs
Look for errors such as:
APPAP330E Failed to verify application authentication data
APPAP004E Password object matching query was not found
APPAP003E Failed to get password
APPEX003E The Credential Provider has encountered an error
Possible causes:
Recommended checks:
Test-NetConnection ccp01.company.com -Port 443
curl.exe -vk "https://ccp01.company.com/lbhealth/health.txt"
For passthrough, use TCP monitor first.
This can be normal if testing the wrong CCP path. The CCP API is not a general website.
Test a valid endpoint:
curl.exe -vk "https://ccp.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Object=..."
Or test the optional health file:
curl.exe -vk "https://ccp.company.com/lbhealth/health.txt"
Check whether CCP is evaluating the expected IP.
For SSL termination:
1. Confirm Avi inserts `X-Forwarded-For`.
2. Confirm `X-Forwarded-For` contains only one IP.
3. Confirm `TrustedProxies` contains the Avi source IP seen by CCP.
4. Confirm the application’s real IP is listed in Allowed Machines.
For SSL passthrough:
1. Confirm whether Avi preserves the source IP.
2. Check IIS `c-ip`.
3. If IIS shows Avi’s IP instead of the client IP, Allowed Machines may fail or may authenticate the wrong source.
4. Prefer source IP preservation or use certificate authentication.
For SSL passthrough:
1. Confirm the client sends the certificate.
2. Confirm IIS receives the certificate.
3. Confirm IIS SSL Settings are set to **Accept** or **Require**.
4. Confirm the client certificate chain is trusted by the CCP server.
5. Confirm the certificate serial number or attributes are configured correctly in the Idira application.
For SSL termination:
1. Confirm Avi requests and validates the client certificate.
2. Confirm Avi inserts the Base64 certificate into the expected HTTP header.
3. Confirm CCP `web.config` has the matching `ClientCertificateHTTPHeaderFieldName`.
4. Confirm clients cannot spoof the certificate header.
5. If this cannot be proven, switch to SSL passthrough.
Check:
1. Is the correct VIP DNS record being used?
2. Is the Avi virtual service up?
3. Is the pool up?
4. Is the correct SSL mode configured?
5. Is source NAT changing the client IP?
6. Is X-Forwarded-For inserted correctly?
7. Is TrustedProxies configured correctly?
8. Is the backend certificate trusted by Avi?
9. Is IIS requiring a client certificate that Avi is not presenting?
10. Are HTTP policies modifying headers or paths?
Recommended:
SSL Passthrough
TCP/443 health monitor
Source IP preservation if Allowed Machines is also used
Same VIP certificate installed on every CCP node
Reason:
Recommended:
SSL Termination with HTTPS re-encryption to CCP
X-Forwarded-For enabled
TrustedProxies configured on every CCP node
HTTPS or TCP health monitor
Reason:
1. Validate each CCP node directly.
2. Confirm IIS HTTPS binding.
3. Confirm CCP API works from a test client.
4. Create optional health file.
5. Confirm Idira application authentication settings.
1. Create health monitor.
2. Create server pool.
3. Create virtual service.
4. Configure SSL termination or passthrough.
5. Configure X-Forwarded-For if SSL termination is used.
6. Configure client certificate header forwarding only if required.
1. For SSL termination, configure `TrustedProxies`.
2. For SSL termination with client cert auth, configure `ClientCertificateHTTPHeaderFieldName`.
3. For passthrough, confirm IIS client certificate settings.
4. Restart IIS after web.config changes.
1. Test TCP/443 to VIP.
2. Test health monitor.
3. Test CCP API through VIP.
4. Test with client certificate if required.
5. Review Avi logs.
6. Review IIS logs.
7. Review CCP logs.
8. Confirm the IP and certificate identity evaluated by CCP are the expected values.
For Idira CCP, especially when client-certificate authentication is involved, SSL passthrough is generally the preferred design. It allows IIS and CCP to receive the client certificate directly and avoids the complexity of forwarding certificate details through HTTP headers.
SSL termination can work, but it requires careful configuration of:
For most secure CCP deployments, use: