I recently updated to camel 2.15.0 to setup SSL for camel-restlet. I followed
some of the examples and documentation at 

http://camel.apache.org/camel-configuration-utilities.html#CamelConfigurationUtilities-SSLContextServerParameters

http://mail-archives.apache.org/mod_mbox/camel-commits/201410.mbox/%3c08f403e16ef74ae38cbda572c173d...@git.apache.org%3E


The code was deployed successfully to JBOSS EAP 6.1, when I hit the URL for
a test on browser as expected I was presented with connection untrusted page
, I proceeded  by  confirming security exception. I got a 404 exception
returned from my application.. Looking into the logs I found that the
request protocol was converted to http from https.


*The request from the browser *was https://localhost:8183/cts-rest/cts/users


*Application Log*

Exchange[
        Id                  ID-sporeddy-49218-1426947947361-0-2
        ExchangePattern     InOut
        Headers             {breadcrumbId=ID-sporeddy-49218-1426947947361-0-1,
CamelHttpMethod=GET,
*CamelHttpUri=http://localhost:8183/cts-rest/cts/users*,
*CamelRestletRequest=GET http://localhost:8183/cts-rest/cts/users* HTTP/1.1,
CamelRestletResponse=HTTP/1.1 - Not Found (404) - The server has not found
anything matching the request URI, org.restlet.http.headers=[[Host:
localhost], [Accept-encoding: gzip,deflate], [Connection: keep-alive],
[Accept-language: en-US,en;q=0.5], [User-agent: Mozilla/5.0 (Windows NT 6.1;
WOW64; rv:35.0) Gecko/20100101 Firefox/35.0], [Accept: 


*Questions:*
1) Why is the request protocol converted from https to http?
2)Can I use any port for setting up SSL for restlet?
3) I do not see any documentation in camel-restlet page
*http://camel.apache.org/restlet.html*, the release 2.15.0 talks about
support to setup the SslContextParameters in the camel-restlet component. 
4) What is the solution for this?







--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Restlet-2-15-0-setting-up-SSL-tp5764552.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to