Article - CS181037

Making REST API calls to a remote host via a Service results in error "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to request" in ThingWorx Platform

Modified: 17-Sep-2025   


Applies To

  • ThingWorx Platform 6.5 to 9.7

Description

  • Unable to make a REST call from a ThingWorx service to a Remote Server endpoint
  • Cannot get JSON data into ThingWorx Platform from a third-party server via REST API call over HTTPS
  • HTTPS connection to a Remote Host from a ThingWorx Platform Service does not work
  • TLS handshake does not complete on Service calls from ThingWorx Platform to a remote host
  • Loading JSON data from third party REST API results in SSL/TLS Certificate HandshakeException error in ThingWorx service
  • One of the following errors observed in <ThingworxStorage>\logs\ScriptLog.log when executing Service Code that makes a REST API to a Remote Host:
    JavaException: javax.net.ssl.SSLPeerUnverifiedException: Certificate for <REMOTE HOST OR IP> doesn't match any of the subject alternative names
    Wrapped javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to request

 

This is a printer-friendly version of Article 181037 and may be out of date. For the latest version click CS181037