Have you generated all your certificates for an ssl connection? If not that will be the problem. If you have, make sure that Tomcat can find the certificates in question. The Tomcat docs have a good piece on hooking up SSL I followed it without a hitch.
Dave Patton On Mon, 2002-10-21 at 10:34, [EMAIL PROTECTED] wrote: > I have a Java Servlet running on Tomcat 4.1.12. > At some point, this Servlet needs to send data to another Servlet which is > right now on the same web-server, but in the future, it will be on a different > web-server, also running Tomcat. I have installed the JSSE jar files in the > JAVA_HOME/jre/ext/lib directory, and I can download web pages from Tomcat > using https URL's. > > So, I open a URLConnection: > try > { > URL servletURL = new > URL(getServletConfig().getInitParameter("printServletURL")); > > URLConnection con = servletURL.openConnection(); > > con.setUseCaches(false); > con.setRequestProperty("CONTENT_TYPE","application/octet-stream"); > con.setDoInput(true); > con.setDoOutput(true); > ......... > > > When I run the servlet, I get the following Exception > SEVERE: Handshake failed > javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown > at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275) > at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275) > at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) > at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) > > > So, how does one get a Java Servlet on Tomcat to act as an SSL client, and > connect to another SSL server? > > > --Monte Glenn Gardner > > > > -- > To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> ___________________________ David H. Patton C.O.S. [EMAIL PROTECTED] x4727 - desk (202) 276-8998 - pcs -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>