7 Replies Latest reply on Sep 4, 2018 10:32 AM by Prem Yadav

    Wildfly and JDK 1.8 PKIX unable to find valid certification path to requested target

    Prem Yadav Newbie

      Caused by: javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking https://example.com/soap/reqest: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1347)

      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1331)

      at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)

      at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)

      at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:120)

      ... 66 more

      Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:d

      at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

      at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)

      at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)

      at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)

      at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)

      at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)

      at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)

      at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)

      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)

      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)

      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)

      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)

      at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)

      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)

      at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316)

      at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1291)

      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)

      at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:174)

      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1290)

      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1246)

      at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:201)

      at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)

      at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)

      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1303)

      ... 69 more

      Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)

      at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)

      at sun.security.validator.Validator.validate(Validator.java:260)

      at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)

      at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)

      at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)

      at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)

      ... 88 more

      Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)

      at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)

      at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)

      at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)