PTA - EPV Connectivity with Non Trusted PVWA communication
Symptom
The following is logged in diamond.log when attempting to save EPV Connectivity:
LOG | [2019-02-19|11:20:17.437|SGT] | ERROR | {aid=ptaservices} | {sid=} | {rid=} | {tid=DefaultMessageListenerContainer-1} | com.cyberark.diamond.services.server.impl.epv.EPVServiceServer.returnException(EPVServiceServer.java:366) - GNL0162E :: EPV 'logon' action failed. failure message: 'I/O error on POST request for "https://compone.cyber-ark.demo:443/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/logon": sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target'
Environment
10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;14.4 Privileged Access Manager (PAM, self-hosted) PTA PTA
Cause
Resolution
- Ensure both PTA and PVWA is using Root certificate from the same Certificate Authority. If there is an intermediate certificate, then ensure that the intermediate certificate is installed in PTA and PVWA.
- (or) Disable PVWA Trusted Mode in PTA
- Set communication_to_pvwa_trusted_mode = false in systemparm.properties.
- Restart PTA service (service appmgr restart)
- Attempt to save EPV connectivity again.
Additional Information
Details
SYMPTOM:
The following is logged in diamond.log when attempting to save EPV Connectivity:
LOG | [2019-02-19|11:20:17.437|SGT] | ERROR | {aid=ptaservices} | {sid=} | {rid=} | {tid=DefaultMessageListenerContainer-1} | com.cyberark.diamond.services.server.impl.epv.EPVServiceServer.returnException(EPVServiceServer.java:366) - GNL0162E :: EPV 'logon' action failed. failure message: 'I/O error on POST request for "https://compone.cyber-ark.demo:443/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/logon": sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target'
PROBLEM:
By default, communication between PTA and PVWA is verified and trusted by the PTA Server.
SOLUTION:
- Ensure both PTA and PVWA is using Root certificate from the same Certificate Authority. If there is an intermediate certificate, then ensure that the intermediate certificate is installed in PTA and PVWA.
- (or) Disable PVWA Trusted Mode in PTA
- Set communication_to_pvwa_trusted_mode = false in systemparm.properties.
- Restart PTA service (service appmgr restart)
- Attempt to save EPV connectivity again.