title: How to publish a Web Service over HTTPS with JAX-WS in an OSGi container?
body: <p>With Java it is easy to consume a Web Service over HTTPS but how do you publish one?</p>
  
  <p>The standard JAX-WS implementation doesn't support it. We tried Jetty but Jetty does not have support for Web Services over HTTPS either (<code>JettyHttpServerProvider</code>'s <code>createHttpsServer()</code> throws an <code>UnsupportedOperatonException</code>). I think this problem should be really easy. But somehow I always run against walls.</p>
  
  <p>Additionally <strong>this has to work with OSGi</strong> so I'd prefer if most or all dependencies are available as bundles. Currently I try to get CXF running but it has a lot of non-OSGi dependencies which makes deployment very hard.</p>
  
  <p>We also need client authentication via certificates but my hope is this will be relatively easy once HTTPS is enabled.</p>
  
  <p>Why is this such a big deal? For example to provide static content with Jetty, all you need to do is create a server, add any SSL connector and you're done. Why can't it be that easy for Web Services?</p>