- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
This article will explain how to setup Idira components when your company requires specific or all traffic to go through proxy.
Each self-hosted component communicates with different services in the Privilege Cloud backend, so it may be
necessary to configure proxies in different places to enable all required communication.
Idira only supports unauthenticated proxy type.
First, we need to understand what traffic Idira communicates with:
Each Protocol used is in charge of various things, such as installation, authentication, day 2 day functionality, Cred resets, various API bulk scripts and more.
To configure CASOS (1858) communication over proxy, Idira components typically come with vault.ini file that can be set and enable proxy settings.
To configure HTTP/HTTPS communication over proxy we use Windows/Linux Environment parameters & .NET configuration.
What is currently Supported:
Not Supported (Semi):
1. Connector Management - Currently CM itself doesn't support fresh CPM/PSM proxy installs, BUT if you follow the article and install CPM/PSM manually, afterwards you can deploy CM in proxy mode and it will work on subsequent CPM/PSM upgrades, since for CM the process is transparent.
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| Privileged Session Manager | Vault | Main service | 1858 | Vault.ini |
| Privileged Session Manager | Identity API | User Authentication | HTTPS | Environment variables |
| Privileged Session Manager | Privilege Cloud REST API | Unlock exclusive accounts after sessions end (ExclusiveUnlockAfterPSMSession) | HTTPS | Environment variables |
| ApiKeyManager | Privilege Cloud REST API | API key reset | HTTPS | Environment variables |
| ApiKeyManager (via Cryptography API) | CRL/OCSP endpoints | Certificate Revocation checks | HTTP | User profile in Windows |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| PSM for SSH service | Vault | Main service | 1858 | Vault.ini |
| PSM for SSH service | Identity API | User Authentication | HTTPS | Environment variables |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| Password Manager Service | Vault | Main service | 1858 | Vault.ini |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| Password Manager Setup | Privilege Cloud REST API | Backend configuration | HTTPS | .NET 32 bit |
| Password Manager Setup | Vault | Backend configuration | 1858 | Vault.ini (in CPM installation folder) |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| Credential Provider service | Vault | Main service | 1858 | vault.ini |
| Credential Provider service | Vault | Main service | 1858 | (for Linux) Environmental variables |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| ApiKeyManager | Privilege Cloud REST API | API key reset | HTTPS | Environment variables |
| CPM Scanner Service | Privilege Cloud REST API | Main service | HTTPS | .NET 32 bit |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| Secure Tunnel Service | Backend Connector | Main service | HTTPS | Application.properties |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| CreateCredFile-Helper | Privilege Cloud REST API | Credential synchronization | HTTPS | Environment variables |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| Set-DomainUser | Privilege Cloud Vault |
Backend configuration | 1858 | -Proxy parameter |
| Set-DomainUser | Privilege Cloud REST API | Backend configuration | HTTPS | -Proxy parameter |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| PowerShell | Any | N/A | HTTPS | .NET (64 bit) |
| VaultOperationsTester | Vault | Tool-dependent | 1858 | Vault.ini |
| WebDriverUpdater | Driver download sites | Browser driver update | HTTPS | .NET (32-bit) |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| PowerShell | Connector Management Backend | Software download | HTTPS | .NET (64 bit) |
| Connector Management Agent | Connector Management Backend | Main service | HTTPS | Built-In UI config |
| Source | Destination | Purpose | Protocol/Port | Proxy method |
| Identity Connector | Identity API | Main service | HTTPS | Built-in configuration |
| <system.net> <defaultProxy> <proxy usesystemdefault="true" proxyaddress="http://proxy_host:proxy_port" bypassonlocal="true" /> </defaultProxy> </system.net> |
Affects:
Edit C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\Machine.Config
Add to the <configuration> block:
| <system.net> <defaultProxy> <proxy usesystemdefault="true" proxyaddress="http://proxy_host>:<proxy_port" bypassonlocal="true" /> </defaultProxy> </system.net> |
Affects:
Add:
| PROXYTYPE=HTTPS PROXYADDRESS=<proxy_host> PROXYPORT=<proxy_port> |
Affects:
The http_proxy, https_proxy and no_proxy variables are best defined at system level, as Windows does not really have a facility to define this per-service. To do so:
Affects:
On Linux these environment variables may be set in 3 contexts:
These methods may vary by OS distribution.
To set globally:
| http_proxy=http://<proxy_host>:<proxy_port> https_proxy=http://<proxy_host>:<proxy_port> |
To set in the current session:
| export http_proxy=http://<proxy_host>:<proxy_port> export https_proxy=http://<proxy_host>:<proxy_port> |
To set for the PSM for SSH service:
| systemctl edit psmpsrv |
| [Service] Environment=http_proxy=http://<proxy_host>:<proxy_port> Environment=https_proxy=http://<proxy_host>:<proxy_port> |
| systemctl restart psmpsrv |
Setting the proxy configuration globally is recommended to reduce effort for future upgrades and maintenance, but if you prefer selective configuration:
| proxyservice.explicitProxyAddress=<proxy_host> proxyservice.explicitProxyPort=<proxy_port> |
Some components use the Windows Cryptography API to verify server certificates. As part of that validation process, the Cryptography API may need to check for revoked certificates, which will require a proxy. The Cryptography API will use the proxy settings of the user (configured in Windows Settings or Internet Control Panel) that initiated the verification check.
More information: https://learn.microsoft.com/en-us/troubleshoot/developer/browsers/security-privacy/description-of-cr...
Installing through proxy will require us to do two things:
1. Configure OS level settings
2. Stop the usual installation flow and intervene in the middle, change few things and resume installation.
You can watch the online YouTube videos we have prepared to better understand the process:
CPM, PSM, SecureTunnel, Identity Connector
From Marketplace at https://community.cyberark.com/marketplace/s/#software-aK4Ht000000XZuPKAW-
In Shared Services, The "[email protected]" (which used for installations) password expires
every 24 Hours. Therefore, it's important to make sure to reset the password before starting
the process.
When running prerequisite checks on the connector, connectivity tests will fail. That is expected with proxy.
We will need to perform some tests manually.
-------------------------------------------------------------------
* If you are doing this first time we highly recommend backing up any file you are asked to edit, just in case you want to start fresh again.Windows:
<system.net>
<defaultProxy>
<proxy
usesystemdefault="true"
proxyaddress="http://<address:port>"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>
These steps will allow the CPM Registration process to be completed with the proxy. This is only required on the active CPMs. It can be performed on servers intended to be passive CPMs, but it won't have any effect.
VAULT = "CPM Vault"
ADDRESS=<vault address>
PORT=1858
PROXYTYPE=HTTPS
PROXYADDRESS=<proxy address>
PROXYPORT=<proxy port>
$registerComponentArguments = "CPM /accepteula $acceptEula /upgrade $isUpgrade /vaultip $vaultip /vaultport $vaultPort /vaultuser $vaultUser /pocmode $pocMode /installdir `"$installDirectory`" /cpmusername $cpmusername"
$registerComponentArguments = "CPM /vaultinifile `"$registerComponentWorkingDir\Vault.ini`" /accepteula $acceptEula /upgrade $isUpgrade /vaultip $vaultip /vaultport $vaultPort /vaultuser $vaultUser /pocmode $pocMode /installdir `"$installDirectory`" /cpmusername $cpmusername"
With the changes above, the Installer can complete the
Expected Result:
VAULT = "PSM Vault"
ADDRESS=<vault address>
PORT=1858
PROXYTYPE=HTTPS
PROXYADDRESS=<proxy address>
PROXYPORT=<proxy port>
TIMEOUT=30
<Parameter Name= "vaultip" Value="vault-subdomain.privilegecloud.cyberark.cloud"/>
<Parameter Name= "vaultport" Value="1858"/>
<Parameter Name= "vaultusername" Value="[email protected]"/>
<Parameter Name= "accepteula" Value="Yes"/>
Expected Result:
Expected result:
The steps for installation and configuration are as follows:
VAULT = "CAMainVault"
ADDRESS=<vault address>
PORT=1858
PROXYTYPE=HTTPS
PROXYADDRESS=<proxy address>
PROXYPORT=<proxy port>
Expected result:
* Tested on OS that have /etc/environment file configuration (Centos, RHEL, Rocky) which are the supported OS by CyberArk.
* Note that steps for CP and PSMP are similar except that after setting proxy for PSMP you can install it via the psmpwiz script for your comfort, CP for now must be installed manually.
PSMP / CP:
http_proxy=http://<proxy_host>:<proxy_port>
https_proxy=http://<proxy_host>:<proxy_port>
In case of any issues verify the system configuration matches the following:
For PSM service to connect to vault via proxy
PROXYTYPE = HTTPSPROXYADDRESS = <Proxy Host>PROXYPORT = <Proxy Port> |
For PSM service to perform ExclusiveUnlockAfterPSMSession:
[API]Addresses="https://<subdomain>.privilegecloud.cyberark.cloud/passwordvault/api "ApiKeyPath="<Idira Installation Dir>\PSM\Vault\apigw.cred" |
PSM service does not use the proxy settings from vault.ini for connections to API. (TBC: which proxy settings apply to this connection)
For CPM service to connect to vault via proxy
PROXYTYPE = HTTPSPROXYADDRESS = <Proxy Host>PROXYPORT = <Proxy Port> |
[API]Addresses=https://<subdomain>.privilegecloud.cyberark.com/PasswordVault |
CPM Scanner service does not use the proxy settings from vault.ini. It uses 32-bit .NET configuration instead.
CPM Vault.ini Addresses value does not have /api at the end
ERROR: ApiKeyManager (CPM/PSM) error:
[ERROR] 001E Failed to perform request (Reason=[A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.])
Solution: this means that your env variables have incorrect syntax, typically we see users set "https://<proxy>..." under the https_proxy variable, but instead it should be "http://<proxy>..." for both http_proxy and https_proxy.
ERROR: The server did not response CredSSP being an available authentication method - actual: 'Negotiate, Kerberos' unreachable: true
Run these commands in PowerShell and retry install
winrm set winrm/config/service/auth '@{CredSSP="true"}'
winrm set winrm/config/client/auth '@{CredSSP="true"}'
Enable-WSManCredSSP -Role Server
ERROR: ITACM087E Proxy communication error (Code 3). Reason: Timeout : Proxy server could not connect to PrivateArk server. PrivateArk server did not respond
This means you didn't whitelist the proxy public IP, and sometimes they have multiple IPs (Machine Public IP is not the same as Proxy IP).
ERROR: ITACM087E Proxy communication error (Code 3). Reason: HTTP/1.1 502 badgateway
Check the vault.ini PROXYTYPE value, it needs to be HTTPS (users often mistake because their proxy is http:// but it's in fact HTTPS behind the scenes).
ERROR: credssp JTTPSConnectionPool max retries exceeded with url: /wsman (Caused by SSLError "bad handshake: SysCallError(104, "ECONN RESET") "unreachable")
Typically means you run CMD or PS not in admin mode, and tried to execute installer.bat like that.