title: org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]]
body: <p>I work with apach tomcat 7</p>
  
  <p>I used this kind of command in order to use ssl</p>
  
  <pre><code>keytool -genkey -alias tomcat -keypass changeit -keyalg RSA
  
  keytool -export -alias tomcat -keypass changeit -file server.cert 
  
  keytool -import -alias tomcat -file %FILE_NAME% -keypass changeit -keystore %JAVA_HOME%/jre/lib/security/cacerts
  </code></pre>
  
  <p>in web.xml of tomcat server </p>
  
  <p>I add this code :</p>
  
  <pre><code> &lt;Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
                 maxThreads="150" scheme="https" secure="true"
                 clientAuth="false" sslProtocol="TLS" 
                 keystoreFile="C:\key\server.cert"
                 keystorePass="changeit"
                 /&gt;
  </code></pre>
  
  <p>but when I try to start my server I have this error :</p>
  
  <pre><code>SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"]
  java.io.IOException: Invalid keystore format
      at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
      at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
  </code></pre>