You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ismael Blesa Part <ib...@tissat.es> on 2000/08/21 17:45:55 UTC

Tomcat 3.2B2 SSL not working

I have done all the steps writen on the server.xml.

1 Get JSSE and put jars on the classpath
2 add security.provider.2=com.sun.net.ssl.internal.ssl.Provider
on  java.home/jre/lib/security/java.security
3 keytool -genkey -alias tomcat -keyalg RSA

Then I have done a build because the bin version of 3.2B2 does not have
SSLSocketFactory compiled

Tomcat starts fine :
but when I try to access to https://myhost:8443/ I get the following
message with Netscape:
"Warning! You have requested an insecure document that was originally
designated a secure document (the location has been redirected from a
secure to an insecure document). The document and any information you
send back could be observed by a third party while in transit."

and on the console:

2000-08-21 04:34:26 - ContextManager: Adding context Ctx( /isum )
2000-08-21 04:34:26 - ContextManager: Adding context Ctx(  )
2000-08-21 04:34:26 - ContextManager: Adding context Ctx( /test )
2000-08-21 04:34:28 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080

2000-08-21 04:34:35 - PoolTcpConnector: Starting HttpConnectionHandler
on 8443

2000-08-21 04:34:35 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on
8007
2000-08-21 04:36:03 - Ctx(  ): 302 R(  + / + /) /index.html
2000-08-21 04:36:04 - ContextManager: IOException reading request,
ignored -
javax.net.ssl.SSLException: Unrecognized SSL handshake.
       at
com.sun.net.ssl.internal.ssl.InputRecord.read([DashoPro-V1.2-120198])
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
        at
com.sun.net.ssl.internal.ssl.AppInputStream.read([DashoPro-V1.2-120198])

        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.java:117)

        at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInputStream.java:106)

        at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputStream.java:128)

        at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
        at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpRequestAdapter.java:131)

        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:185)

        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)

        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

        at java.lang.Thread.run(Unknown Source)

What should I do to get it working?

How to specify on server.xml that I require a digital certificate from
the user?

How to specify wich context should be accessed trough the secure
connection?

thanks