title: Tomcat with 1-way and 2-way SSL
body: <p>I have a service A that uses 1-way SSL and also 2-way SSL to make secure requests to service B. 1-way SSL is specified by Tomcat config, I provide keystoreFile, keystorePass, enable SSL, etc. 2-way SSL is implemented using JSSE on the client (service A). I know this could be done similarly in Tomcat server.xml too (example is here: <a href="http://blog1.vorburger.ch/2006/08/setting-up-two-way-mutual-ssl-with.html" rel="nofollow">http://blog1.vorburger.ch/2006/08/setting-up-two-way-mutual-ssl-with.html</a>).</p>
  
  <p>Part of my 1-way SSL Tomcat configuration:</p>
  
  <pre><code>&lt;Connector port="securePort"
             scheme="https"
             secure="true"
             clientAuth="false"
             sslProtocol="TLS"
             SSLEnabled="true"
             keystoreFile="keystoreFile"
             keystorePass="keystorePass"
             keystoreType="keystoreType"
             ...
  /&gt;
  </code></pre>
  
  <p><strong>Is there a way to specify both 1-way and 2-way (client side) SSL for the same service in Tomcat</strong> though. The challenge here is that I'm using 2 certificates (server and client one) on the same IP. Any hints?</p>