Re: HTTP4s handshake exception

2019-04-09 Thread Rohan Emmanuel
>> SSLContextParameters scp = new SSLContextParameters(); >> scp.setTrustManagers(tmp); >> HttpComponent httpComponent = getContext().getComponent("https4", >> HttpComponent.class); >> httpComponent.setSslContextParameters(scp); >> } >> -- Forward

Re: HTTP4s handshake exception

2019-04-02 Thread Rohan Emmanuel
tmp); > HttpComponent httpComponent = getContext().getComponent("https4", > HttpComponent.class); > httpComponent.setSslContextParameters(scp); > } > -- Forwarded message ----- > From: Rohan Emmanuel [via Camel] > Date: Mon, Apr 1, 2019 at 4:39 PM > Subject: Re: HTTP4s handshak

Fwd: HTTP4s handshake exception

2019-04-01 Thread Wang Yan
From: Rohan Emmanuel [via Camel] Date: Mon, Apr 1, 2019 at 4:39 PM Subject: Re: HTTP4s handshake exception To: W.Y PS: keystore is to keep you own server's a pair of keys, truststore is to keep the remote server's certificate(public key) which you trust you could use one file for

Re: HTTP4s handshake exception

2019-04-01 Thread Rohan Emmanuel
e httpclient code which is calling your route, it need to set up > truststore > > > -- Forwarded message - > From: Rohan Emmanuel [via Camel] > Date: Mon, Apr 1, 2019 at 10:26 AM > Subject: Re: HTTP4s handshake exception > To: W.Y >

Fwd: HTTP4s handshake exception

2019-04-01 Thread Wang Yan
ssage - From: Rohan Emmanuel [via Camel] Date: Mon, Apr 1, 2019 at 10:26 AM Subject: Re: HTTP4s handshake exception To: W.Y where exactly i should specify trust store resource location while configuring HTTP4s? KeyStoreParameters class provides setResouce , similarly ,how to specify trust store

Re: HTTP4s handshake exception

2019-04-01 Thread Rohan Emmanuel
where exactly i should specify trust store resource location while configuring HTTP4s? KeyStoreParameters class provides setResouce , similarly ,how to specify trust store ? On Sun, Mar 31, 2019 at 11:17 AM Rohan Emmanuel wrote: > any clues on the reasons for getting "java.net.SocketException:

Re: HTTP4s handshake exception

2019-03-30 Thread Rohan Emmanuel
any clues on the reasons for getting "java.net.SocketException: Software caused connection abort: recv failed" when using http4s? On Sun, Mar 31, 2019 at 10:08 AM Rohan Emmanuel wrote: > Can anyone point me to working HTTPS sample please? > > > On Sat, Mar 30, 2019 at 3:32 PM Rohan Emmanuel >

Re: HTTP4s handshake exception

2019-03-30 Thread Rohan Emmanuel
while using the HTTPs4 producer, should i configure the "server.keystore" as resource for the KeyStoreParameters? following this link to create the keystores--> https://libraries.io/github/girirajsharma/wildfly-ssl-examples On Sat, Mar 30, 2019 at 1:38 PM Rohan Emmanuel wrote: > i tried adding

Re: HTTP4s handshake exception

2019-03-30 Thread Rohan Emmanuel
Can anyone point me to working HTTPS sample please? On Sat, Mar 30, 2019 at 3:32 PM Rohan Emmanuel wrote: > still getting Handshake exception:] > not sure where i am going wrong > > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRea

Re: HTTP4s handshake exception

2019-03-30 Thread Rohan Emmanuel
still getting Handshake exception:] not sure where i am going wrong java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_101] at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[?:1.8.0_101] at

HTTP4s handshake exception

2019-03-30 Thread Wang Yan
You could do something like this to set SSL for Http4 private void configureSslForHttp4(){ KeyStoreParameters ksp = new KeyStoreParameters(); ksp.setResource(keystoreLocation); ksp.setPassword(keystorePassword); TrustManagersParameters tmp = new TrustManagersParameters(); tmp.setKeyStore(ksp); SSL

Re: HTTP4s handshake exception

2019-03-30 Thread Rohan Emmanuel
i tried adding # for the parameters, it didn't help. can you point me to any HTTPS sample . that would be helpful On Fri, Mar 29, 2019 at 6:14 PM Andrea Cosentino wrote: > You need to use the # for the parameter like this: > > > > .to("https4://:/MutualAuthentication/MutuallySecuredServlet?ssl

Re: HTTP4s handshake exception

2019-03-29 Thread Andrea Cosentino
You need to use the # for the parameter like this:   .to("https4://:/MutualAuthentication/MutuallySecuredServlet?sslContextParameters=#sslContextParameters"); -- Andrea Cosentino  -- Apache Camel PMC Chair Apache Karaf Committer Apache Servicemix PMC Member Email:

Re: HTTP4s handshake exception

2019-03-29 Thread Rohan Emmanuel
The full route is as follows RouteBuilder routeBuilder = new RouteBuilder() { @Override public void configure() throws Exception { from("netty4:tcp://127.0.0.1:9992?allowDefaultCodec=false") .setHeader(Exchange.HTTP_METHOD, constant(HttpMe

Re: HTTP4s handshake exception

2019-03-29 Thread Andrea Cosentino
Can you show the full route? -- Andrea Cosentino  -- Apache Camel PMC Chair Apache Karaf Committer Apache Servicemix PMC Member Email: ancosen1...@yahoo.com Twitter: @oscerd2 Github: oscerd On Friday, March 29, 2019, 1:02:08 PM GMT+1, Rohan Emmanuel wrote:

Re: HTTP4s handshake exception

2019-03-29 Thread Rohan Emmanuel
Thanks for the response Andrea, i do have set the sslContextParameters as follows, do you see anything wrong with it? ksp.setResource("C:\\gateway\\conf\\server.keystore"); ksp.setType("pkcs12"); ksp.setPassword("changeit"); KeyManagersParameters kmp = new KeyManagersPar

Re: HTTP4s handshake exception

2019-03-29 Thread Andrea Cosentino
You need to set the sslContextParameters on your uri. https://github.com/apache/camel/blob/master/components/camel-http4/src/main/docs/http4-component.adoc -- Andrea Cosentino  -- Apache Camel PMC Chair Apache Karaf Committer Apache Servicemix PMC Member Email: anc

HTTP4s handshake exception

2019-03-29 Thread Rohan Emmanuel
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