DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7960>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7960

Native object returned instead of x509certificate

           Summary: Native object returned instead of x509certificate
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: All
               URL: https://scud.doc.ic.ac.uk:7443/ssltest/ssl
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:JK/AJP
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am attempting to make an HTTPS connection to Apache+mod_ssl, and then connect 
to tomcat using ajp1.3. This works, but when I attempt to extract the client 
certificate I get an error.

First I get the certificatefrom the request using the command:
request.getAttribute("javax.servlet.request.X509Certificate")
However if I attempt to cast this as a java.security.cert.X509Certificate 
object I get a cast exception. 

Examining the returned object with:
request.getAttribute("javax.servlet.request.X509Certificate").getClass().getName
()
shows that the obkect is not of type java.security.cert.X509Certificate as it 
shoudl be but is instead of class [Ljava.security.cert.X509Certificate; as it 
would be if it was returning a native object.

I have discoverd that this was a bug before tomcat 4.0m4. But everything I have 
round about that was using a direct HTTPS connectior in tomcat. I am 
encountered this bug using the AJP1.3 connector and mod_jk. I get this bug 
using linux(on intel) and solaris. I have tried using java 1.3 and 1.4

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

Reply via email to