>From what I know, by default, Http client use Java standard ssl validation >mecanism. Try debugging with those JVM options, they will give you the list of trusted certificates and the certificate chain the server gave you. -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol -Djavax.net.debug=ssl
If it doesn't help, it is possible that the server you connect to has a self-signed certificate, try custom socket libraries like shown here : http://jakarta.apache.org/commons/httpclient/sslguide.html#Examples%20of%20SSL%20customization%20in%20HttpClient Good luck Thomas -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : mercredi 19 octobre 2005 17:37 À : [email protected] Cc : [email protected] Objet : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found Hello, As its very urgent i am posting in this forum,I have an Applet to servlet communication using HttpClient ,the servlet is deployed in tomcat.When the tomcat is started in SSL mode the applet fails with SSL Handshake Exception ( details below) .I dont have any SSLHandshakeException using URLConnection of java but we moved to HttpClient . Please tell me wat should i set so it works with SSL. Exception;; javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(Unknown Source) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(Unknown Source) at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.flush(Unknown Source) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:825) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:393) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:168) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.vftis.pag.passthru.PassThruClient.getDLLMessages(PassThruClient.java:128) Thanks,Jakeer. -------------------------------------------------------------------------------------------- Jakeer Mohammad SoftwareDeveloper Tel.: +49 (0)89 32671-337 Fax: +49 (0)89 32671-400 eMail: [EMAIL PROTECTED] ---------------------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
