users@jersey.java.net

Re: [Jersey] getting x.509 certificate principal

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Thu, 9 Sep 2010 12:48:45 +0200

Hi John,

What Web container are you using? I think you may need to register the
cert on the server side as well.

Paul.

On Sep 9, 2010, at 1:50 AM, John Calcote wrote:

> I've managed to successfully install a ContainerRequestFilter that
> currently just displays (logs) the principal via
> ContainerRequest.getUserPrincipal(). When I tested, I found I was
> getting an SSL exception - unknown cert (from my browser). I installed
> my browser's cert into the truststore, and the SSL error went away,
> but
> the Principal returned is still null.
>
> What do I have to do in Jersey/Spring to get the request's Principal
> object to be populated with the X.509 certificate identity
> (subjectName,
> or whatever)? Clearly, I'm missing some wiring here.
>
> Thanks,
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>