If you use DS then you should take a look at CXF-DOSGi it allows to avoid the manual code for creating the the service. See: https://github.com/apache/cxf-dosgi/tree/master/samples/ssl
On the server side you can simply configure pax-web to use ssl. Then you can use a relative url to make cxf use the HttpService. Alternatively you can also use a https url but I am not sure how to configure keystores and similar in this case. Christian 2016-10-07 17:15 GMT+02:00 nino martinez wael <[email protected]> : > Hi > > How do I switch to HTTPS? Currently I have this: > > JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean(); > sf.setResourceClasses(WhiteLabelEndPoint.class); > sf.setAddress("http://localhost:7521/oak"); > server = sf.create(); > > I am not using spring and are having a little trouble seeing how to > configure the bus for https as all examples are pointing towards the > springbusfactory? > > > PS i am using OSGI with Karaf as container and Declarative services for > injection. > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- -- Christian Schneider http://www.liquid-reality.de <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de> Open Source Architect http://www.talend.com <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>
