Hi,
I am using Jetty HttpClient( 9.0.0.RC2) to send a HTTPS request to splunk server Rest API. When i use IE browser to access this URL i get the following
certificate issue :
The security
certificate presented by this website was not issued by a trusted certificate
authority.
So I click continue to this website to make the call successful.
Do do this in code I have set TrustALL to true using SslContextFactory(true) and also
sslContextFactory.setEndpointIdentificationAlgorithm(null). But still I am getting the below error when calling the API:
org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:594)
at org.eclipse.jetty.client.HttpReceiver.receive(HttpReceiver.java:71)
at org.eclipse.jetty.client.HttpConnection.receive(HttpConnection.java:319)
at org.eclipse.jetty.client.HttpConnection.onFillable(HttpConnection.java:307)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:278)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:78)
at org.eclipse.jetty.io.FillInterest.register(FillInterest.java:61)
at org.eclipse.jetty.io.AbstractEndPoint.fillInterested(AbstractEndPoint.java:118)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:260)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:278)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:78)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:198)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:278)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:78)
at org.eclipse.jetty.io.SelectChannelEndPoint.onSelected(SelectChannelEndPoint.java:109)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processKey(SelectorManager.java:496)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.select(SelectorManager.java:453)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.run(SelectorManager.java:418)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:589)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:520)
at java.lang.Thread.run(Thread.java:722)
Caused by: javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1639)
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1607)
at sun.security.ssl.SSLEngineImpl.closeInbound(SSLEngineImpl.java:1537)
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:538)
... 22 more
I also set the authentication (BasicAuthentication) username password but still it did not help. Any idea what can be the issue ?
Thanks & Regards
Munthajeeb AKbar