title: How to add SSL certificates to Tomcat in Docker container?
body: <p>I'm new to Docker and trying to learn it. I'm using Docker Quickstart Terminal on Windows 7.
  I've a simple requirement where I'm using Tomcat in a Docker container. My DockerFile is as following:</p>
  
  <pre><code>FROM tomcat:8.0.47-jre7
  RUN cd /usr/local/tomcat/webapps
  COPY test.war /usr/local/tomcat/webapps/test.war
  </code></pre>
  
  <p>Then I issue simple build and run commands in the Docker console.</p>
  
  <p>test.war is a Java web-service. This web-service internally calls other web-services on remote hosts using HTTPS.
  I've the certs for the remote hosts.</p>
  
  <p>I tried several ways available on the internet to import or copy those certs to different locations as mentioned on different forums/blogs, but in vain. Whenever I use HTTPS to call the external web-service from test.war, it gives me SSL Handshake error.</p>
  
  <p>I also have a Java keystore. I tried to use Java also in my Docker file and tried to use the keystore, but again, in vain.</p>
  
  <p>When I use the same test.war on the tomcat installed directly on my machine, it works absolutely fine.</p>
  
  <p>Can someone help me by providing the steps to be able to import/use SSL certs/keystore in this scenario. Also, how can I import more than one certs?</p>