tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Smith" <sat-g...@home.com>
Subject Re: TOMCAT AND SSL HELP ME PLEASE
Date Fri, 10 Nov 2000 15:05:13 GMT
Khaled,

The keystore has a password on it. Tomcat
expects an entry called "tomcat" with a password
of "changeit". This is explained in the server.xml
comment.

If you used a different password, do this:

        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"

value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port"
                value="8443"/>
            <Parameter name="socketFactory"
                value="org.apache.tomcat.net.SSLSocketFactory" />
  <Parameter name="keypass" value="my-password-here"/>
        </Connector>


The keystore also needs to be generated with the
same version of jdk as the one on your deployment
system.


Regards,

Dave


----- Original Message -----
From: "Khaled Ben Mohamed" <Khaled.ben.mohamed@halogen.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Friday, December 29, 2000 8:46 AM
Subject: TOMCAT AND SSL HELP ME PLEASE


> Hello
> I am trying to secure my webapp with SSL
> After generating a certificate with keytool ,
> I don't understand this message starting tomcat 3.2
> (on linux operating system)
>
> >./startup.sh
> Guessing TOMCAT_HOME from tomcat.sh to ./..
> Setting TOMCAT_HOME to ./..
> Using classpath:
>
./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/jcert.jar:./
>
../lib/jnet.jar:./../lib/jsse.jar:./../lib/parser.jar:./../lib/servlet.jar:.
>
/../lib/test:./../lib/webserver.jar:/usr/local/jdk1.2.2/bin/../lib/tools.jar
> - ContextManager: Adding context Ctx(
> /examples )
> 2000-12-29 11:09:38 - ContextManager: Adding context Ctx( /directPanel )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2000-12-29 11:09:38 - ContextManager: Adding context Ctx( /admin )
> 2000-12-29 11:09:38 - ContextManager: Adding context Ctx(  )
> 2000-12-29 11:09:38 - ContextManager: Adding context Ctx( /test )
> FATAL:java.io.IOException: Keystore was tampered with, or password was
> incorrect
> java.io.IOException: Keystore was tampered with, or password was incorrect
>  at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:742)
>  at java.security.KeyStore.load(KeyStore.java:608)
>  at
>
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.java:22
> 1)
>  at
>
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:160)
>  at
>
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.java:11
> 8)
>  at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
> :239)
>  at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
>  at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
>  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
>  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message