Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / October 2003

Tip: Looking for answers? Try searching our database.

access to certificates under SSL with tomcat

Thread view: 
Bill Harrelson - 24 Oct 2003 17:28 GMT
This is perhaps a newbie question, but I'm trying to get access to the
requestor's credentials in a servlet under Tomcat.

I use req.isSecure to ensure that I'm in a secure connection, and try to
get the certificates with:

X509Certificate[] certs
=(X509Certificate[])req.getAttribute("javax.servlet.request.X509Certificate");

With the default setting of clientAuth="false" in Tomcat, the above
always returns null;

Setting clientAuth to "true" returns the certificates.

However, I need clientAuth to be "false" for client browser access to
other servlets - is there any other way to get the certificate
information from Tomcat?  (All I need is the Public Key).

Thanks for any assistance.  Of course this is coming at a critical time.

Bill
VK - 26 Oct 2003 00:28 GMT
Cough up $199 (min) for a legal certificate and be happy.
Bill Harrelson - 26 Oct 2003 14:20 GMT
> Cough up $199 (min) for a legal certificate and be happy.

I'm sorry, my newsreader has lost it's history, but I think this was in
responce to my question on how to access certificates with
client-auth=false.  If so, then this response doesn't help, as I have a
legal certificate with a cert chain from Verisign.

Please excuse the post if this is the wrong thread.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.