[Jersey] Re: Jersey https tomcat

From: Pavel Bucek <>
Date: Wed, 13 Apr 2011 11:42:57 +0200

I don't know how to set this on Tomcat - maybe you can ask on their
mailing list.

If you'd use glassfish, its very similar to that sample, but instead of
file realm, you'd have to use certificate realm and update other
settings accordingly. Just remember you need to set "require client
certificate" (or something like this) because it is not commonly turned
on by default.

Client certificate need to be stored in client keystore and that should
be sufficient. You might need to implicitly set it as "use certificate
to authenticate"; see https-clientserver-grizzly sample for inspiration.

Certificates can be generated using java keytool or even other tools,
just google for it (or I can do it for you: Keytool documentation:
Nice article about security in java can be found here:


On 4/13/11 11:26 AM, steben wrote:
> so if I understand, what I need now is to create 2 certificats for server
> and client for authentication, to get a high level of security, because I
> need to have a high level of security, one more question once the
> certificats are created where should I declare this certificats,
> --
> View this message in context:
> Sent from the Jersey mailing list archive at