hi ,
I am trying to establish HTTPS connection to webserver in a route( running
as standalone java application). but i am getting handshake exception can
you please point me in the right direction?

any http4s sample which i can use?

below is the stack trace.
1.)I imported the client key store in browser and i am able to connect to
the webserver to invoke the web application.
2.) when i try to connect to the same applciation in route, i get the below
exception.



Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor
                                                Elapsed (ms)
[route1            ] [route1            ] [tcp://127.0.0.1:9992
                                              ] [      1253]
[route1            ] [setHeader1        ] [setHeader[CamelHttpMethod]
                                              ] [        10]
[route1            ] [to1               ] [https4://
15.213.85.104:3110/MutualAuthentication/MutuallySecuredServlet?sslCon] [
  1228]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
javax.net.ssl.SSLHandshakeException: Remote host closed connection during
handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:992)
~[?:1.8.0_101]
at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
~[?:1.8.0_101]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
~[?:1.8.0_101]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
~[?:1.8.0_101]
at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)
~[httpclient-4.5.3.jar:4.5.3]
at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
~[httpclient-4.5.3.jar:4.5.3]
at
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
~[httpclient-4.5.3.jar:4.5.3]
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
~[httpclient-4.5.3.jar:4.5.3]
at
org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
~[httpclient-4.5.3.jar:4.5.3]
at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
~[httpclient-4.5.3.jar:4.5.3]
at
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
~[httpclient-4.5.3.jar:4.5.3]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
~[httpclient-4.5.3.jar:4.5.3]
at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
~[httpclient-4.5.3.jar:4.5.3]
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
~[httpclient-4.5.3.jar:4.5.3]



-- 
Regards,
Rohan Emmanuel

Reply via email to