Hello everyone~!

Until now for 2days I have a problem with configuring tomcat to serve
SLL so that I can connect jsp page through https://domainame.com:8443/

I'm enumerating what I did.

$JAVA_HOME is JDK path
-------
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore
$HOME/catest/mystore
-------
$JAVA_HOME/bin/keytool -certreq -alias tomcat -keystore $HOME/catest/
mystore -file tomcat.csr
-------
openssl ca -in tomcat.csr -out tomcat.pem -keyfile $HOME/catest/demoCA/
private/cakey.pem -days 1825
-------
openssl x509 -in tomcat.pem -out tomcat.der -outform DER
-------
keytool -import -alias ca -keystore $HOME/catest/mystore -trustcacerts
-file $HOME/catest/demoCA/cacert.pem
-------
keytool -import -alias cert -keystore $HOME/catest/mystore -file
tomcat.der
-------

And I changed setting of server.xml.Here is connector section in the
server.xml that I set up
----------------------------------------------------------------
maxThreads="150" scheme="https" secure="true"
SSLEngine="on"
keystoreFile="${user.home}/catest/mystore"
keystorePass="changeit"
clientAuth="false" sslProtocol="TLS" />
----------------------------------------------------------------
Then I stop tomcat and run it again.
Here is the output of the catalina.out and I extracted important
message.

2007. 12. 13 오후 8:15:06 org.apache.catalina.startup.Catalina load
심각: Catalina.start
LifecycleException: Protocol handler initialization failed:
java.io.IOException: Invalid keystore format
at
org.apache.catalina.connector.Connector.initialize (Connector.java:
1061)
at
org.apache.catalina.core.StandardService.initializ e(StandardService.java:
677)
at
org.apache.catalina.core.StandardServer.initialize (StandardServer.java:
792)
at org.apache.catalina.startup.Catalina.load(Catalina .java:
518)
at org.apache.catalina.startup.Catalina.load(Catalina .java:
538)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl..java:
43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.apache.catalina.startup.Bootstrap.load(Bootstr ap.java:
260)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:
412)
2007. 12. 13 오후 8:15:06 org.apache.catalina.startup.Catalina load
2007. 12. 13 오후 8:15:06 org.apache.catalina.startup.Catalina load
심각: Catalina.start
LifecycleException: Protocol handler initialization failed:
java.io.IOException: Invalid keystore format
at
org.apache.catalina.connector.Connector.initialize (Connector.java:
1061)
at
org.apache.catalina.core.StandardService.initializ e(StandardService.java:
677)
at
org.apache.catalina.core.StandardServer.initialize (StandardServer.java:
792)
at org.apache.catalina.startup.Catalina.load(Catalina .java:
518)
at org.apache.catalina.startup.Catalina.load(Catalina .java:
538)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl..java:
43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.apache.catalina.startup.Bootstrap.load(Bootstr ap.java:
260)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:
412)
2007. 12. 13 오후 8:15:06 org.apache.catalina.startup.Catalina load
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:
710)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:
566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl..java:
43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:
288)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:
413)
2007. 12. 13 오후 8:15:07 org.apache.catalina.startup.Catalina start
심각: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler
start failed: java.io.IOException: Invalid keystore format
at
org.apache.catalina.connector.Connector.start(Conn ector.java:1139)
at
org.apache.catalina.core.StandardService.start(Sta ndardService.java:
531)
at
org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:
566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl..java:
43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:
288)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:
413)
2007. 12. 13 오후 8:15:07 org.apache.catalina.startup.Catalina start
----------------------------------------------------------------





Could you help me about this? I've scrutinized google results. But it
didn't help me.
And information about this problem is poor. You help will be
appreciated.