Secure tunnel is DOWN but Secure Tunnel Service is Running
106
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 15:56 PM
Symptom
On the secure tunnel server on the customer site, the Secure Tunnel service is running but the tunnel shows as DOWN on the backend. The following error appears in the privilege-cloud-securetunnel-service.log on the customer's secure tunnel server:
<date> <time> ERROR xxxx --- [main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jasyptStringEncryptor' defined in class path resource [com/cyberark/privcloud/securetunnel/config/SecurityConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.jasypt.encryption.pbe.PooledPBEStringEncryptor]: Factory method 'jasyptStringEncryptor' threw exception; nested exception is org.jasypt.exceptions.EncryptionOperationNotPossibleException
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:656) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:636) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) ~[spring-context-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.2.RELEASE.jar!/:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.2.RELEASE.jar!/:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.2.RELEASE.jar!/:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.2.RELEASE.jar!/:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.2.RELEASE.jar!/:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.2.RELEASE.jar!/:2.2.2.RELEASE]
at com.cyberark.privcloud.securetunnel.PrivilegedCloudSecureTunnelApplication.main(PrivilegedCloudSecureTunnelApplication.java:30) ~[classes!/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[privilege-cloud-securetunnel-service.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[privilege-cloud-securetunnel-service.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) ~[privilege-cloud-securetunnel-service.jar:na]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) ~[privilege-cloud-securetunnel-service.jar:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.jasypt.encryption.pbe.PooledPBEStringEncryptor]: Factory method 'jasyptStringEncryptor' threw exception; nested exception is org.jasypt.exceptions.EncryptionOperationNotPossibleException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
... 29 common frames omitted
Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException: null
at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1055) ~[jasypt-1.9.2.jar!/:na]
at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725) ~[jasypt-1.9.2.jar!/:na]
at org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:498) ~[jasypt-1.9.2.jar!/:na]
at com.cyberark.privcloud.securetunnel.services.security.SecretServiceImpl.calcPropertyEncryptor(SecretServiceImpl.java:250) ~[classes!/:na]
at com.cyberark.privcloud.securetunnel.config.SecurityConfig.jasyptStringEncryptor(SecurityConfig.java:24) ~[classes!/:na]
at com.cyberark.privcloud.securetunnel.config.SecurityConfig$$EnhancerBySpringCGLIB$$26865222.CGLIB$jasyptStringEncryptor$1(<generated>) ~[classes!/:na]
at com.cyberark.privcloud.securetunnel.config.SecurityConfig$$EnhancerBySpringCGLIB$$26865222$$FastClassBySpringCGLIB$$d18e9a51.invoke(<generated>) ~[classes!/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
at com.cyberark.privcloud.securetunnel.config.SecurityConfig$$EnhancerBySpringCGLIB$$26865222.jasyptStringEncryptor(<generated>) ~[classes!/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
... 30 common frames omitted
If an attempt is made to re-install the secure tunnel client, the following error may appear in the secure_tunnel_installer.log
<date> <time> info [secureTunnelConfigure.js]: calling url: http://127.0.0.1:50000/v1/tunnelsConfig
<date> <time> info [secureTunnelConfigure.js]: Sending configuration to Secure Tunnel: {"serverCACertificate":".......
<date> <time> error [configFlow.js]: Failed to update Secure Tunnel client details: Error: connect ECONNREFUSED 127.0.0.1:50000
Environment
13.0;13.2;14.6 Privilege Cloud Privilege Cloud Tenant / Backend Privilege Cloud Tenant / Backend Secure Tunnel Backend
Cause
This is caused by a mismatch in the public keys between the customer's secure tunnel server and the backend.
Resolution
This can also be solved by uninstalling/re-installing the Secure Tunnel which is usually easier and can be performed without Idira involvement.
If this does not work, please open a support ticket and reference this KBA.