Try the "javax.servlet.request.X509Certificate" attribute.

"nicolas alin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi !!!
> I'm using Tomcat 5 (stand-alone)
> I'm trying to get the client certificat (i'm doing a strong SSL
identification it's works well)
> but when i try to get te client certificat from my jsp, nothing work...
> is there somting to configure in tomcat ?
> my jsp code is :
> X509Certificate certChain[] =
(X509Certificate[])request.getAttribute("javax.net.ssl.peer_certificates");
> if( certChain != null )
> {
>      for (int i=0; i < certChain.length; i++)
>      {
>           String a = certChain[i].toString();
>           System.out.println(a);
>      }
> }
>
> Tkanks, i really need help :(
>
>
> ---------------------------------
> Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
> Créez votre Yahoo! Mail
>
> Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés
pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to