tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jennings <m...@southgatesoftware.com>
Subject Re: initKeyStore: java.io.IOException: Invalid keystore format error when I start Tomcat 4.0.3
Date Sat, 11 May 2002 18:32:30 GMT
Hi,

It sounds like the Java keystore file that was created was somehow damaged.
Try using the JDK keytool utility to have a look inside it, or try using the
GUI version of keytool available at:
http://southgatesoftware.com/products/sskeytool/download/download.html
to have a look at your Java keystore file, or use it to create a new one. It
might be helpful.
(you can also use it to sign other people's certificates)

-Mike

----- Original Message -----
From: "Gajaraj" <gajaraj.rajashekar@uaeexchange.com>
To: <jakarta-tomcat-cvs@apache.org>
Sent: Friday, May 10, 2002 10:44 PM
Subject: initKeyStore: java.io.IOException: Invalid keystore format error
when I start Tomcat 4.0.3


> Hello
>
> We are implementing Sybse open source for ebXML Messaging, I have done
> the following mentioned in the installation guide give by Sybase:
>
> 1. I have downloaded all the jar
> files(dom4.jar,jcert.jar,j2ee.jar,jnet.jar,jsse.jar,log4.jar,xss4j.jar,x
> alan.jar,xerces.jar) and put them in the lib dir under %CATALINA_HOME%.
>    Where CATALINA_HOME is points to the location of Tomcat Installation.
> 2. Also I have added the entry: set JSSE_HOME=%CATALINA_HOME%\common in
> Catalina.bat file.
> 3. Generated the Keystore and certificate using CreateTomcatCerts.bat
> file under webapps\ebXML dir.(The tomcat.cer and tomcat.pfx file are
> created in this dir)
> 4. Uncommented the section for HTTPS connection in
> %CATALINA_HOME%\conf\server.xml file.
>
> But when I comment the HTTPS in step 4, and then start the Tomcat 4.0.3,
> it starts without reporting any error.
>
> Problem:
>
> The problem is when I uncomment step 4 and re-start the Tomcat4.0.3
> again, I get the following error:
>
> initKeyStore:  java.io.IOException: Invalid keystore format
> java.io.IOException: Invalid keystore format
>         at
> sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:609)
>         at java.security.KeyStore.load(KeyStore.java:613)
>         at
> org.apache.catalina.net.SSLServerSocketFactory.initKeyStore(SSLServer
> SocketFactory.java:366)
>         at
> org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSo
> cketFactory.java:333)
>         at
> org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServer
> SocketFactory.java:287)
>         at
> org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
> ava:948)
>         at
> org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
> ctor.java:1128)
>         at
> org.apache.catalina.core.StandardService.initialize(StandardService.j
> ava:454)
>         at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
> a:553)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> Catalina.start: LifecycleException:  null.open:  java.io.IOException:
> java.io.IO
> Exception: Invalid keystore format
> LifecycleException:  null.open:  java.io.IOException:
> java.io.IOException: Inval
> id keystore format
>         at
> org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
> ctor.java:1130)
>         at
> org.apache.catalina.core.StandardService.initialize(StandardService.j
> ava:454)
>         at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
> a:553)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> ----- Root Cause -----
> java.io.IOException: java.io.IOException: Invalid keystore format
>         at
> org.apache.catalina.net.SSLServerSocketFactory.initKeyStore(SSLServer
> SocketFactory.java:371)
>         at
> org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSo
> cketFactory.java:333)
>         at
> org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServer
> SocketFactory.java:287)
>         at
> org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
> ava:948)
>         at
> org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
> ctor.java:1128)
>         at
> org.apache.catalina.core.StandardService.initialize(StandardService.j
> ava:454)
>         at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
> a:553)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>
> Where am I going wrong?? Any solution for the above error??
>
> Thanks in advance.
>
> Regards
>
> Gajaraj
>
>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message