You should create ssl context for Jetty. It requires generated keystore.
Example of configuring ssl context in Java:
KeyStoreParameters ksp = new KeyStoreParameters();
KeyManagersParameters kmp = new KeyManagersParameters();
SSLContextParameters scp = new SSLContextParameters();
JettyComponent jettyComponent = getContext().getComponent("jetty", JettyComponent.class);
How can you generate keystore? There is keytool provided by JDK (http://docs.oracle.com/javase/tutorial/security/toolsign/step3.html)
Michal, Thanks for your quick response.
How do I use that jettyComponent object then?
I've been using routes only in a XML fashion, in the spring file.
Here is my route:
<log message="xx body xx $"/>
Example from Camel-Jetty documentation:
Thanks again Michal,
Now I'm getting a javax.net.ssl.SSLHandshakeException: no cipher suites in common
But, before I keep trying-and-failing, let me explain my scenario, so I can start from the ground up.
I've a .NET WCF WebService that doesn't require client authentication but it's using https, so I'm able to inquiry the wsdl typing https://wcfserver/servicename?wsdl and I can consume the service without installing a certificate in the client.
Now, my first question is "why would I need to install a certificate in the keystore" when I use a jetty consumer with https in Fuse to do a bridge?"
Appreciate your help in advance,
Yes, but I think there are two connections (first, you are receiving the data; second, you are sending the data).
Try to analize this stackoverflow thread:
There is example of working two way ssl proxy with camel.