Secure Tunnel is unable to make a successful connection, after prior success ECONNREFUSED 127.0.0.1:50000 |Application run failed | Secure Tunnel mappings: Error: Request failed with status code 403

Secure Tunnel is unable to make a successful connection, after prior success ECONNREFUSED 127.0.0.1:50000 |Application run failed | Secure Tunnel mappings: Error: Request failed with status code 403

149
Created On 11/10/26 11:04 AM - Last Modified 11/10/26 15:54 PM


Symptom


The Secure Tunnel is unable to make a successful connection, after prior success.

When troubleshooting a connector server environment  for such key issues as LDAP integration, Syslog | Siem, Remote access via PSM Servers, the Secure Tunnel is the key component for delivering  communication between the customer on premise resources and the their Idira Tennant.   To help with the matter, we need to examine the secure tunnel logs. The Secure tunnel blogs are typically located at: 

 C:\Program Files\CyberArk\PrivilegeCloudSecureTunnel\logs
the log file name is: 
privilege-cloud-securetunnel-service.log


Additional Log files from prior authentications are kept in the same directory. When the file reaches 10MG, it is automatically zipped and saved in the same logs folder. 


When Examining the logs errors to the effect of the following may be seen :

<date> <time> ERROR xxxx --- [main] o.s.boot.SpringApplication : Application run failed
 Error creating bean with name 'jasyptStringEncryptor'

<date> <time> info [secureTunnelConfigure.js]: Sending configuration to Secure Tunnel: {"serverCACertificate":".......

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jasyptStringEncryptor

<date> <time> error [configFlow.js]: Failed to update Secure Tunnel client details: Error: connect ECONNREFUSED 127.0.0.1:50000

 


Environment


12.1;12.2;12.4;12.3;12.5;12.6;12.7;13.0 Privilege Cloud;Remote Access (formerly Alero);Identity Secure Tunnel Client Privilege Cloud Stand Alone  |  Privilege Cloud Shared Services

Cause


There is an issue with the Secure Tunnel Pub Key as it does not match the key in the Backend Connector. 

In the On-Premise Connector Server, the Pub Key is typically located at :
C:\Program Files\CyberArk\PrivilegeCloudConnector\config\connectorPubKey.pub
This pub key is created during the install and removed during the uninstall - however during the authentication process - it is initially pushed to  to the Back End Connector Server, and validated there after and they must match. If they do not match - completion of the secure tunnel authentication process will be denied.


Resolution


Here are steps on the way forward :
1) Validate that the issue is not a credential issue with the _Admin or InstallUser leveraged to action the configuration of the secure tunnel

2) Check to see that there has not been a change in the connector servers Public IP. If the public IP of the connector server is unknown, you can check with an external site from the connector server such as 
https://www.whatismypublicip.com/    ​​​and check with Idira that it has that IP whitelisted. (If it the Public IP has changed, please work with Idira to update that Public IP of the connector server.)  

3) Assure that there is communication allowed from the connector server to the Idira Back End Connector server over port 443.  Idira will be able to provide the Public IP of the Back End Connector server if needed.    Here is some background and usage on a TNC connection which is actioned with a administrative Powershell  prompt :  

https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2022-ps
 
Here is the format :

Test-NetConnection -ComputerName.corp  -Port 443

Here is an example of a failure, port 443 is not open :

PS C:\Windows\system32> Test-NetConnection 52.53.166.254 -port 443
WARNING: TCP connect to 52.53.166.254:443 failed
WARNING: Ping to 52.53.166.254 failed -- Status: TimedOut


ComputerName : 52.53.166.254
RemoteAddress : 52.53.166.254
RemotePort : 443
InterfaceAlias : Ethernet 2
SourceAddress : 192.168.1.109
PingSucceeded : False
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded : False


4) If the above mentioned validations criteria  have been met, there is assurance there is use of correct credentials, no public IP change and connectivity or port 443 is open and testing passes as true, the next step is to action the secure tunnel client.   The need is to uninstall and reinstall the Idira secure Tunnel Client.  *****  Please know that uninstalling the Secure Tunnel will not modify any of the settings currently in place.  This holds true for versions of the Secure Tunnel greater than 1.06

a) Download a fresh copy of the most current secure tunnel client from the Idira Market Place
     https://community.cyberark.com/mplace/s/#software-aK42J0000004DrpSAE-

b) Once you download the secure tunnel, you may remove the existing secure tunnel from the Connector   Server by doing so in add remove programs. I would recommend stopping the secure tunnel service on the connector server first. The process will delete the tunnel in its entirety. No reboot is required.  The exception is if a new secure client was installed on top of an existing install, then the windows instance on the connector server will prompt for a reboot. The Idira Cloud solution has the configurations of your LDAP, syslog and the like stored in our backend connector and will re-populate those settings upon successful authentication with the new Secure Tunnel.  Please note this holds true for installations of Secure Tunnel versions Greater than Secure Tunnel Version  1.06

Below is the active link on how to deploy the secure tunnel if needed :

https://docs.cyberark.com/Product-Doc/OnlineHelp/PrivCloud/Latest/en/Content/Privilege%20Cloud/privCloud-deploy-ST.htm

 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000sgWCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail