unable to find valid certification path to requested target
153
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:12 PM
Symptom
HTML5 Gateway error:
===
[PSMGW][15:15:43.153][[https-jsse-nio-8443-exec-7]][ERROR][o.a.g.s.GuacamoleHTTPTunnelServlet]: HTTP tunnel request failed: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[PSMGW][15:15:43.063][[https-jsse-nio-8443-exec-1]][ERROR][o.a.g.w.GuacamoleWebSocketTunnelEndpoint]: Creation of WebSocket tunnel to guacd failed: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
===
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.3;12.6;13.0;13.2;14.0;14.2 Privileged Access Manager (PAM, self-hosted) PSM PSM
HTML5 Gateway
CCP - Java
Cause
There is no valid certificate in the Java keystore
Resolution
Follow the Idira documentation on importing the certificates to the Java keystore.
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PAS%20INST/Install_PSM_HTML5_RPM.htm?Highlight=html5#InstalltheHTML5Gateway
-------------
If this error is reported from a JAVA application integrated with CCP then below are the steps to remediate this error :
Adding the CCP servers Root CA certificate into the cacerts file of the Java keystore.
keytool -import -alias <CCP Name> -keystore <jdk/jre path>/lib/security/cacerts -trustcacerts -file <Root CA certificate file path>
Details for which can be found in this article :
https://stackoverflow.com/questions/21076179/pkix-path-building-failed-and-unable-to-find-valid-certification-path-to-requ
https://docs.mend.io/bundle/wsk/page/how_to_resolve_error_message__pkix_path_building_failed__sun_security_provider_certpath_suncertpathbuilderexception__unable_to_find_valid_certification_path_to_requested_target_.html