• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Client side Authentication - Tomcat

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I want to enable client side authentication in Tomcat. I have enabled it by setting clientAuth="true" in server.xml. The browser also has its client certificates installed. Now when the user visits the website it pops up the window that says that "the server requires a client certificate.Please choose one of the certificates below". But it won't show those certificates. I am sure I have a lot of things missing but can someone please help because this is the first time I am doing this.

Thanks
Imad
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not a Tomcat expert, but you need to tell Tomcat ( or any SSL server) which Certificate Authorities (CAs) it should trust. You can do this in several ways (just google for phrases like "Java truststore" or "Tomcat client authentication"). Once this is properly configured at the Tomcat server, the server will send a list of the names of these CAs to the client browser when asking the client to authenticate. At that point, the client will look for user certificates that have been signed by any of these CAs. The client will present this list and ask the user to pick one of them. So the next thing to verify is that your client side has a certificate that is signed by one of the CAs Tomcat trusts. It is not enough that there simply be certificates available on the client, there must be at least one signed by one of the CAs Tomcat trusts.
[ August 17, 2007: Message edited by: greg stark ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic