"Peer Not Authenticated" exception.

I am trying to connect to a SSL enabled Lotus Domino Mail Server, using JSSE.

At the client side this is the exception encountered:

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain([DashoPro-V1.2-120198])

at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java, Compiled Code)

at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java, Compiled Code)

at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2459)

at HTTPClient.HTTPConnection.Get(HTTPConnection.java:812)

at com.tibco.portal.transformation.APHTTPCache.getHTTPResponse(Unknown Source)

at com.tibco.portal.transformation.APHTTPCache.getSingleResponse(Unknown Source)

at com.tibco.portal.transformation.APHTTPCache.getContent(Unknown Source)

at com.tibco.portal.transformation.APHttpSourceInstance.getContentObject(Unknown Source)

at com.tibco.portal.transformation.APHttpSourceInstance.getUnstructuredContent(Unknown Source)

And at the Lotus Domino server end this is the error logged:

[25/Jul/2001:10:05:02 +0800] [PUT NOT ALLOWED] [host: 10.96.68.234] SSL Handshake failed

I already have the correct certificate imported.

Any help is appreciated.

-Asha

[1345 byte] By [ashanayak] at [2007-9-26 1:51:54]
# 1

Hi Asha,

Try by setting setNeedClientAuth(true) on the SSLSocketFactory .

Netscape 4.51 works fine.It works fine. IE 5.0 apparently doesn't like to do client authentication over an HTTPS SSL socket which has already been handshaked. If the server instead requests client authentication for the initial handshake on the HTTPS socket then everything works fine with IE. The SSLPeerNotAuthenticated exception correct reflects the fact that IE has chosen to not client authenticate.

Hope this will help you.

Regards,

Anil.

Techncial Support Engineer.

ramanil_indts at 2007-6-29 3:00:56 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2
Hi,See this URL: http://java.sun.com/j2se/1.4/docs/guide/security/jsse/JSSERefGuide.htmlThanks,Senthilkumar
senthil_indts at 2007-6-29 3:00:56 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...