RE: Configuring 2way SSL on a REST endpoint in an OSGi container

2016-09-18 Thread Martin Nielsen
ginal Message- > > From: Martin Nielsen [mailto:mny...@gmail.com] > > Sent: Freitag, 16. September 2016 21:18 > > To: users@cxf.apache.org > > Subject: Re: Configuring 2way SSL on a REST endpoint in an OSGi container > > > > I think I figured that out myself actuall

RE: Configuring 2way SSL on a REST endpoint in an OSGi container

2016-09-17 Thread Andrei Shakirin
authentication for all SSL endpoints are registered with relative URLs. Regards, Andrei. > -Original Message- > From: Martin Nielsen [mailto:mny...@gmail.com] > Sent: Freitag, 16. September 2016 21:18 > To: users@cxf.apache.org > Subject: Re: Configuring 2way SSL on a REST endp

Re: Configuring 2way SSL on a REST endpoint in an OSGi container

2016-09-16 Thread Martin Nielsen
I think I figured that out myself actually. Setting org.ops4j.pax.web.ssl.clientauthwanted = true Should enable two way ssl if the client has anything to send. At least that is what I am hoping. Does anyone have any experience about whether this is a correct assumption? If that is correctly unders

Re: Configuring 2way SSL on a REST endpoint in an OSGi container

2016-09-16 Thread Martin Nielsen
That looks very much like what I would need. The only issue is that I will need 2way ssl for only a select few endpoints. It looks to me like the pax web configuration is global. Is that right? On 16 Sep 2016 10:21, "Christian Schneider" wrote: > I am not sure about reading the client certifica

Re: Configuring 2way SSL on a REST endpoint in an OSGi container

2016-09-16 Thread Christian Schneider
I am not sure about reading the client certificate in an interceptor but that part should be for the most part unrelated to OSGi. Maybe you can ask that as a separate question so people without OSGi knowledge tune in. Christian On 16.09.2016 08:42, Martin Nielsen wrote: Hello everyone. I hav

Re: Configuring 2way SSL on a REST endpoint in an OSGi container

2016-09-16 Thread Christian Schneider
You are lucky :-) I just created such an example for CXF-DOSGi 2. See: https://github.com/apache/cxf-dosgi/tree/master/samples/ssl Christian On 16.09.2016 08:42, Martin Nielsen wrote: Hello everyone. I have a question about using CXF in an OSGi container. More specifically using it via Decla

Configuring 2way SSL on a REST endpoint in an OSGi container

2016-09-15 Thread Martin Nielsen
Hello everyone. I have a question about using CXF in an OSGi container. More specifically using it via Declarative Services. I need to create a REST endpoint, that is secured by 2way SSL, as well as an interceptor which can read the incomming client certificate after the handshake in order to per