2 Replies Latest reply on Aug 13, 2013 5:07 AM by milanmilas

    Restlet with SSL configuration or any other Rest (CXF_RS) SSL framework

    milanmilas

      Hi,

       

      I am trying to figure out how to set SSL for my Restlet component in Camel route.

      I can see from the documentation that HTTPS hasn't been tested with Restlet component but not sure if it supports it and how to set it up.

       

      Is it possible to get Restlet Component in Java and set it up using:

      http://restlet.org/learn/guide/2.0/extensions/ssl

       

      Server server1 = component.getServers().add(Protocol.HTTPS,

         "host1.example.org", 8083);

      Series param1 = server1.getContext().getParameters();

       

      param1.add("sslContextFactory","com.noelios.restlet.ext.ssl.PkixSslContextFactory");

      param1.add("keystorePath","/path/to/keystore1.p12");

      param1.add("keystorePassword","...");

      param1.add("keystoreType","PKCS12");

       

      I need to secure Rest in my camel route, but not sure if it is possible and what is

      the best approach?

       

      Regards,

      Milan