Hey Alex, In order to get client certificates you need to configure server for that. Sample jetty configuration (from Java API) is available here: https://gist.github.com/jankronquist/6412839
Major trouble here is fact that SSL context will be shared across whole server/connector (port) which you declare. Secured service which requires client cert might redirect automatically to https to force validation on the server side. Anyhow if you will find a working configuration then it will be very nice material for publication! :-) Cheers, Łukasz On 04.03.2020 08:02, Alex Weirig wrote: > Hello, > > I have multiple REST webservices running in karaf using Apache Aries > JAX-RS Whiteboard. > > Now I'd need to create a webservice that should require a client > certificate authentication. > > Is there an example somewhere on how to implement this authentication > (filter, ...?) is an KISS OSGi approach? > > I found some code samples using google but they all seem relatively > complicated or relying on other frameworks (Spring ...). > > Many thanks in advance for your help > > -- > > Mat frëndleche Gréiss, Mit freundlichen Grüßen, Meilleures salutations, > Kind regards, > Alex Weirig > Responsable Technique Ville de Luxembourg Service Enseignement Centre > Technolink *Tel* +352 4796 - 6127 <tel:+35247966127> *Fax* +352 42 88 81 > *Email* [email protected] <mailto:[email protected]> > www.vdl.lu <http://www.vdl.lu> // www.technolink.lu > <http://www.technolink.lu> Centre Technolink 2, rue Charles de Tornaco > L-2623 LUXEMBOURG > > //indoors.this.blesses > <https://map.what3words.com/indoors.this.blesses> > //schaufel.besten.kopie > <https://map.what3words.com/schaufel.besten.kopie> > //supposons.levage.venger > <https://map.what3words.com/supposons.levage.venger>
