My server.xml file contains the following connector stanza and works...

    <!-- Define an SSL HTTP/1.1 Connector on port 8443 -->

    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8443" minProcessors="5" maxProcessors="75"
               enableLookups="true"
               acceptCount="10" debug="0" scheme="https" secure="true">
      <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
               keystoreFile="S:\mysqldatabase\.keystore"
               keystorePass="xxxxxxxx"
               clientAuth="false" protocol="TLS"/>
    </Connector>


This was based pretty literally on the "How to" document for SSL setup
supplied with Tomcat or on the Tomcat homepage.


Murray Nicholas

-----Original Message-----
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 15 July 2003 22:47
To: Tomcat Users List
Subject: RE: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1


If this is similiar to version 4 i think you miss a password to your
keystore. The default in version 4 is "changeit". You must add
keypass="changeit", or your password, to your server.xml. Put it right after
keystore.

And i think it's clientAuth, not authclient as in your server.xml and
XML is case-sensitive ...

Abid

-----Original Message-----
From: sankara [mailto:[EMAIL PROTECTED]
Sent: 15. juli 2003 14:41
To: Tomcat Users
Subject: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1


Hi all,
I have problems in setting up SSL in Tomcat 3.3.1 and the JDK used is 1.3.1.
Steps followed:
---------------
I have downloaded the JSSE jar files and placed them in the
%JAVA_HOME%/jre/lib/ext
My server.xml's SSL config. part is as follows:
<Http10Connector  port="8443"
                        secure="true"
                        keystore="d:/keystore/keystore"
                        authclient="false" />

When I restarted the server, the port 8080 is working properly, but when I
try to communicate
with port 8443 under HTTPS, the following exception is thrown in the
Tomcat's console.

PoolTcpEndpoint: Handshake failed
java.net.SocketException: Socket closed
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
        at java.io.OutputStream.write(OutputStream.java:56)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
                ....
                ....
                ....
        at java.lang.Thread.run(Thread.java:479)
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: javax.net.ssl.SSLProtocolException: handshake
alert:
  no_certificate
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
                ....

Please help me out of this problem.
Thanks,
Sankaran.



---------------------------------------------------------------------
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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to