Hi
When I try getting the peer certificate on a SSL server using:
X509Certificate[] cert =
(X509Certificate[])request.getAttribute("javax.net.ssl.peer_certificates");
its returning a null.
If I get hold of the SSLSession and then access the certificates:
SSLSession sslSession =
(SSLSession)request.getAttribute("javax.net.ssl.session");
X509Certificate[] cert = sslSession.getPeerCertificateChain();
I get the exception:
error: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
The only thing I can think of is that the test server certificate and the root
certificate I have to intall in my browsers could be effecting the session. Has
anybody else had experience with this?
I'm using NT 4.0 service pack 4
JWS 1.1.3 (jre standard)
Thawte test certificate
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html