title: Enabling SSL in Spring Boot with an embedded Tomcat 7 - FileNotFoundException and o.a.coyote.http11.Http11NioProtocol issue
body: <p>I am trying to enable SSL for my Spring Boot application for testing purposes. I generated a keystore file with this command line:</p>
  
  <pre><code>keytool -genkey -alias tomcat
  -storetype PKCS12 -keyalg RSA -keysize 2048
  -keystore keystore.p12 -validity 3650
  </code></pre>
  
  <p>And added the configuration below to my application.properties file:</p>
  
  <pre><code>server.port=8443
  server.ssl.key-store: keystore.p12
  server.ssl.key-store-password: mypassword
  server.ssl.keyStoreType: PKCS12
  server.ssl.keyAlias: tomcat
  </code></pre>
  
  <p>When I run the application with an embedded Tomcat 8 version, SSL is enabled successfully with no errors during the building process.</p>
  
  <p>But when I run it with an embedded Tomcat 7 version through changing the pom.xml file as follows: </p>
  
  <pre><code>&lt;properties&gt;
      &lt;tomcat.version&gt;7.0.65&lt;/tomcat.version&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>SSL doesn't get enabled and I am met with these errors:</p>
  
  <blockquote>
    <p>java.io.FileNotFoundException:
    /tmp/tomcat.4863947968145457153.8443/file:/home/yahyaharif/spring-workspace/demossl/keystore.p12 (No such file or directory)</p>
    
    <p>org.apache.catalina.LifecycleException: Failed to start component
    [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]</p>
    
    <p>org.springframework.boot.context.embedded.EmbeddedServletContainerExcepti> on: Unable to start embedded Tomcat servlet container</p>
  </blockquote>
  
  <p>I've looked up the errors and I noticed that I need to add an embedded servlet container bean to my main, but to no avail.</p>
  
  <p>I also made sure the file path for the keystore file was correct.</p>
  
  <p>ANy lead on why SSL is enabled flawlessly on an embedded Tomcat 8 and not on an embedded Tomcat 7?</p>