>> SSLContextParameters scp = new SSLContextParameters();
>> scp.setTrustManagers(tmp);
>> HttpComponent httpComponent = getContext().getComponent("https4",
>> HttpComponent.class);
>> httpComponent.setSslContextParameters(scp);
>> }
>> -- Forward
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
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
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
>
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
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:
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
>
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
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
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
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
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
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:
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
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:
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
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
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
18 matches
Mail list logo