tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Augusto Drummond Barroso" <alexan...@intelligenesis.net>
Subject Re:X509 client certificate (please take a look at this)
Date Mon, 18 Dec 2000 15:11:54 GMT
I tried as Jerome Camilleri did and I can say that it doesn't work. I also tried to use java.security.cert.X509Certificate
but it returns a null reference!:(

In fact it's not requesting any certificate from my browser. (I'm using Netscape 4.73 and
6.0).

TIA,

Alexandre.

On Mon, 18 Dec 2000 11:03:48 +0100
 jerome.camilleri@bull.net wrote:
> Excuse for my determination but my problem was not
> solve...
> 
> After change my serveur.xml to clientAuth="true"  like
> Craig R. McClanahan said,
> I fall again on my first exception when I try to extract
> the certificate 
> request because 
> object associate with ùrequest attributes nameés 
> 'javax.servlet.request.X509Certificate' 
> aren't of well-known type java.security.cert.X509Certificate
> but 
> [Ljava.security.cert.X509Certificate;@13a66f !!!!!
> 
> My snoop servlet give me this fragment information :
> Request attributes:
>    filters.ExampleFilter.SERVLET_MAPPED = 
> InvokerFilter(ApplicationFilterConfig[name=Servlet Mapped
> Filter, 
> filterClass=filters.ExampleFilter])
>    javax.servlet.request.key-size = 40
>    javax.servlet.request.X509Certificate = 
> [Ljava.security.cert.X509Certificate;@13a66f
>    filters.ExampleFilter.PATH_MAPPED = 
> InvokerFilter(ApplicationFilterConfig[name=Path Mapped
> Filter, 
> filterClass=filters.ExampleFilter])
>    javax.servlet.request.cipher-suite =
> SSL_RSA_EXPORT_WITH_RC4_40_MD5
> 
> and my catalina server crash on exception when I try to
> cast this strange 
> objet to java.security.cert.X509Certificate
> Exception dans le traitement de la requête sécurisée :
> java.lang.ClassCastException:
> [Ljava.security.cert.X509Certificate;
>         at SnoopServlet.doGet(SnoopServlet.java:68)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp....
> 
> 
> Any idea?
> 
> Best regards
> 
Jérôme

Mime
View raw message