VMWare AVI Load Balanced CCP
Objective
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.
Environment
14.0;14.2;14.1 Conjur;Conjur Cloud Central Credential Provider
Procedure
User Guide: Configure VMware Avi Load Balancer for Idira CCP Servers
Reference Architecture
Example values
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 |
Idira CCP Prerequisites
Complete these checks before configuring Avi.
Confirm each CCP server works directly
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&Object=<ObjectName>"
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&Object=<ObjectName>"
Repeat against each CCP node:
curl.exe -vk "https://ccp02.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Object=<ObjectName>"
curl.exe -vk "https://ccp03.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Object=<ObjectName>"
Important! Do not proceed with load balancing until each CCP server works directly.
Confirm the AIMWebService application exists
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:
-
-
-
- Allowed Machines
- Certificate Serial Number
- Certificate Attributes
- OS User
- Path
- Hash
- Any combination required by the integration
-
-
Confirm IIS HTTPS binding on every CCP node
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.
Decide how health monitoring will work
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
-
-
-
- Best default for SSL passthrough.
- Best default when IIS requires client certificates.
- Confirms the node is listening on TCP/443.
-
-
2. HTTPS monitor to a static health file
-
-
-
- Best when SSL is terminated or re-encrypted and IIS can serve the health file without client-certificate authentication.
- Example path: `/lbhealth/health.txt`.
-
-
3. HTTPS monitor to AIMWebService
-
-
-
- Not generally recommended unless the customer intentionally wants a deep application check and can safely authenticate the monitor request.
-
-
Optional: Create a Simple IIS Health Check File
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.
Option A: SSL Termination or SSL Offload on Avi
When to use this option
Use SSL termination when:
-
-
- The customer wants Avi to decrypt HTTPS traffic.
- The customer wants HTTP-layer visibility, logging, or policy control on Avi.
- The customer needs Avi to insert `X-Forwarded-For`.
- The customer is not using client-certificate authentication, or Avi can reliably pass the client certificate to CCP in the required HTTP header.
-
Avoid SSL termination when:
-
-
- CCP applications rely on IIS directly receiving the client certificate.
- The customer cannot configure Avi to forward the original client certificate as a Base64 HTTP header.
- The security design requires end-to-end client certificate validation directly on CCP/IIS.
-
Note: For client-certificate based CCP authentication, SSL passthrough is usually the simpler and safer option.
SSL termination traffic flow
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.
Avi objects to create
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.
Import the VIP certificate into Avi
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.
-
-
-
- Example: ccp.company.com
-
-
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.
Create or select an SSL profile
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:
-
-
- Disable obsolete TLS versions where possible.
- Use the customer’s approved corporate TLS standard.
- Confirm compatibility with all CCP client integrations before enforcing strict cipher changes.
-
Create a health monitor
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:
-
-
-
- Name: HM-CCP-HTTPS-443
- Port: 443
- Request path: /lbhealth/health.txt
- Expected response code: 200
- Expected response body: OK, if the UI supports body matching
-
-
5. Configure timing values:
-
-
-
- Send interval: 10 seconds
- Timeout: 5 seconds
- Successful checks before UP: 2
- Failed checks before DOWN: 3
-
-
6. Save the monitor.
Alternative monitor
Use a TCP/443 monitor if:
-
-
-
- IIS requires client certificates globally.
- The health file cannot be served anonymously.
- The customer wants only a port-level health check.
-
-
Create the CCP server pool
In Avi Controller:
1. Go to Applications > Pools.
2. Click Create Pool.
3. Configure:
-
-
-
- Name: POOL-CCP-HTTPS
- Default Server Port: 443
- Load Balance Algorithm: Least Connections or Round Robin
- Health Monitor: HM-CCP-HTTPS-443 or TCP/443 monitor
-
-
4. Add the CCP servers:
-
-
-
- 10.10.50.11
- 10.10.50.12
- 10.10.50.13
-
-
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:
-
-
-
- Validate backend certificates if the CCP certificates are trusted and match the expected names.
- Temporarily disable backend certificate validation only for controlled testing.
-
-
7. Save the pool.
Recommended:
-
-
- Use HTTPS from Avi to CCP.
- Do not require client certificates on the IIS backend connection unless Avi is specifically configured to present a client certificate to the CCP servers.
- If CCP authentication is based on client certificate details, use the Idira-supported HTTP header method or use SSL passthrough instead.
-
Create the Avi virtual service
In Avi Controller:
1. Go to Applications > Virtual Services.
2. Click Create Virtual Service.
3. Choose Advanced Setup if available.
4. Configure:
-
-
-
- Name: VS-CCP-HTTPS
- VIP Address: 10.10.50.100
- Port: 443
- Protocol: HTTPS
- Application Profile: Secure HTTP profile
- SSL Profile: the SSL profile selected earlier
- SSL Certificate: the VIP certificate for `ccp.company.com
- Pool: POOL-CCP-HTTPS
-
-
5. Save the virtual service.
Configure X-Forwarded-For on Avi
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:
-
-
-
- The header should contain only the original client IP.
- Do not append multiple IPs.
- Do not allow clients to spoof this header.
- Avi should overwrite or sanitize any inbound `X-Forwarded-For` header from the client.
-
-
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
Configure TrustedProxies in CCP web.config
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:
-
-
- TrustedProxies supports IPv4.
- The IPs listed must match the source IPs that CCP sees for requests coming from Avi.
- If this is wrong, CCP will use the load balancer or Service Engine IP instead of the real application client IP.
-
Configure client-certificate forwarding, if required
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:
-
-
- The certificate value must be Base64 encoded.
- The header name in Avi must exactly match the value configured in CCP’s `ClientCertificateHTTPHeaderFieldName`.
- If Avi cannot insert the client certificate in the format CCP expects, use SSL passthrough instead.
- Do not allow external clients to send or spoof this header directly. Avi should overwrite or remove any inbound `X-Client-Certificate` header before inserting its own trusted value.
-
IIS client certificate setting for SSL termination
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:
-
-
-
- Use Accept when CCP will receive client certificate details from the HTTP header (SSL Terminate).
- Use Require only if Avi presents a client certificate to IIS on the backend connection (SSL Passthrough).
-
-
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.
PVWA / Privilege Cloud application settings for SSL termination
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.
Option B: SSL Passthrough on Avi
When to use this option
Use SSL passthrough when:
-
-
- CCP integrations require client-certificate authentication.
- IIS on the CCP server must directly receive and validate the client certificate.
- The customer wants to avoid client certificate header forwarding.
- The load balancer does not need HTTP-layer inspection.
- The simplest and most Idira-friendly path is preferred.
-
This is usually the best option for CCP environments using mutual TLS.
SSL passthrough traffic flow
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:
-
-
- Avi does not decrypt HTTP.
- Avi does not insert `X-Forwarded-For`.
- Avi does not inspect the URI.
- Avi does not see or modify the client certificate.
- CCP/IIS receives the TLS session directly.
-
Certificate requirement for passthrough
Because the client TLS session terminates on the CCP server, each CCP node must present a certificate trusted by the client.
Recommended certificate design:
-
-
- Install the same server certificate on every CCP node.
- The certificate should include the VIP FQDN in the Subject Alternative Name.
- Example SAN: `ccp.company.com`.
-
Caution: If each CCP server presents only its own node-specific certificate, clients connecting to `https://ccp.company.com` may receive a hostname mismatch.
Source IP requirement for Allowed Machines
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:
-
-
- Configure Avi/source networking so the CCP server sees the real application client IP.
- Avoid SNAT if Allowed Machines authentication must evaluate the real client IP.
- Confirm the CCP IIS logs show the real client IP in the `c-ip` field.
-
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.
Create a TCP health monitor
In Avi Controller:
1. Go to Templates > Profiles > Health Monitors.
2. Click Create.
3. Choose TCP.
4. Configure:
-
-
-
- Name: HM-CCP-TCP-443
- Port: 443
- Send interval: 10 seconds
- Timeout: 5 seconds
- Successful checks before UP: 2
- Failed checks before DOWN: 3
-
-
5. Save the monitor.
A TCP monitor is preferred for SSL passthrough because an HTTPS monitor may fail when IIS requires client certificates.
Create the CCP pool for passthrough
In Avi Controller:
1. Go to Applications > Pools.
2. Click Create Pool.
3. Configure:
-
-
-
- Name: POOL-CCP-TCP-443
- Default Server Port: 443
- Load Balance Algorithm: Least Connections or Round Robin
- Health Monitor: HM-CCP-TCP-443
-
-
4. Add the CCP servers:
-
-
-
- 10.10.50.11
- 10.10.50.12
- 10.10.50.13
-
-
5. Do not enable HTTP-specific features for this pool.
6. Save the pool.
Create the Layer 4 virtual service
In Avi Controller:
1. Go to Applications > Virtual Services.
2. Click Create Virtual Service.
3. Use Advanced Setup if available.
4. Configure:
-
-
-
- Name: VS-CCP-L4-PASSTHROUGH
- VIP Address: 10.10.50.100
- Port: 443
- Type/Profile: Layer 4 / TCP
- Pool: POOL-CCP-TCP-443
-
-
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.
Configure source IP preservation if needed
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:
-
-
- CCP servers must know how to route return traffic correctly.
- The return path should not bypass Avi in a way that breaks the TCP session.
- Firewall rules must allow the required traffic.
-
IIS client certificate setting for passthrough
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:
-
-
-
- Require, if every consuming application must present a client certificate.
- Accept, if some applications use client certificates and others do not.
-
-
6. Apply the setting.
7. Restart IIS if needed:
iisreset
DNS Configuration
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
Firewall Requirements
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.
Validation Tests
Test VIP TCP connectivity
From a client machine:
Test-NetConnection ccp.company.com -Port 443
Expected:
TcpTestSucceeded : True
Test VIP certificate
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.
Test CCP account retrieval without client certificate
curl.exe -vk "https://ccp.company.com/AIMWebService/api/accounts?AppID=<AppID>&Safe=<SafeName>&Folder=Root&Object=<ObjectName>"
Expected:
-
-
- HTTP `200`
- Valid CCP response body
-
If authentication fails, review:
-
- CCP logs
- IIS logs
- AppID authentication method
- Allowed Machines
- X-Forwarded-For behavior
- TrustedProxies setting
Test CCP account retrieval with client certificate
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=<ObjectName>"
Expected:
-
-
- TLS handshake succeeds.
- HTTP request reaches CCP.
- CCP authenticates the application certificate.
- CCP returns the credential or a valid Idira error that can be troubleshot.
-
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.
Check IIS logs on CCP
On the CCP server that handled the request, review IIS logs:
C:\inetpub\logs\LogFiles\W3SVC*
Look for:
-
- Client IP in `c-ip`
- Request path `/AIMWebService/api/accounts`
- HTTP status
- HTTP substatus
- Win32 status
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`.
Check CCP logs
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
Troubleshooting Matrix
VIP is down in Avi
Possible causes:
-
- Health monitor path does not exist.
- Health monitor cannot complete TLS handshake.
- IIS requires client certificates and the monitor does not provide one.
- Firewall blocks Avi Service Engine to CCP server on TCP/443.
- CCP server is not listening on TCP/443.
- Backend certificate validation fails.
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.
Browser or curl returns “No page found”
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=<ObjectName>"
Or test the optional health file:
curl.exe -vk "https://ccp.company.com/lbhealth/health.txt"
Allowed Machines authentication fails
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.
Client certificate authentication fails
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.
CCP works directly but fails through Avi
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 Design Decision
If the customer uses client-certificate authentication
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:
-
- CCP/IIS receives the original client certificate directly.
- No client certificate header translation is required.
- Fewer moving parts.
- Less risk of header spoofing or formatting issues.
If the customer does not use client-certificate authentication
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:
-
- Avi can perform HTTP-layer load balancing and monitoring.
- CCP can still evaluate the original requester IP using `X-Forwarded-For`.
- Backend traffic remains encrypted if re-encryption is used.
Change Plan Summary
Phase 1: Prepare CCP
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.
Phase 2: Configure Avi
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.
Phase 3: Configure CCP for load balancing
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.
Phase 4: Validate
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.
Final Recommendation
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:
- `X-Forwarded-For`
- `TrustedProxies`
- Client certificate header forwarding, if certificate authentication is used
- Header spoofing protection
- Backend IIS SSL settings
- Backend re-encryption
For most secure CCP deployments, use:
- Avi Layer 4 TCP/443 virtual service
- TCP/443 health monitor
- SSL passthrough
- Source IP preservation where Allowed Machines authentication is required
- Client certificates validated directly by IIS/CCP