title: Enable TLS 1.2 only in apache-tomcat-9 and Java 8
body: <p>I have deployed my web application in Apache Tomcat 9.x.x and I have two options for Java </p>
  
  <ul>
  <li>Openjdk version 1.8.x</li>
  <li>Oracle Java 1.8.x</li>
  </ul>
  
  <p>I need to allow TLS 1.2 only.</p>
  
  <p>Please help guide me to achieve this.</p>
  
  <p>I have tried to follow the following links(Not sure if they are outdated).</p>
  
  <p>But <a href="https://www.ssllabs.com/ssltest/analyze.html?d=" rel="nofollow noreferrer">https://www.ssllabs.com/ssltest/analyze.html?d=</a>&lt;&lt; my public IP >> says : TLS 1.1 &amp; TLS 1.0 are still enabled. </p>
  
  <p><a href="https://stackoverflow.com/questions/45103279/how-to-enable-tls-v1-2-in-apache-tomcat-8-i-am-using-java-8">how to enable TLS v1.2 in Apache tomcat 8 , I am using Java 8</a></p>
  
  <p><a href="https://stackoverflow.com/questions/26401465/how-do-i-disable-sslv3-in-tomcat">How do I disable SSLv3 in tomcat?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/9749339/does-tomcat-support-tls-v1-2">Does Tomcat support TLS v1.2?</a>  (The two steps mentioned by <strong>oraclesoon</strong> doesn't seem to work)</p>
  
  <p><a href="https://serverfault.com/questions/637649/how-do-i-disable-sslv3-support-in-apache-tomcat">How do I disable SSLv3 support in Apache Tomcat?</a></p>
  
  <p>Also <a href="https://support.comodo.com/index.php?/Knowledgebase/Article/View/659/17/how-to----disable-weak-ciphers-in-tomcat-7--8" rel="nofollow noreferrer">HOW TO -- Disable weak ciphers in Tomcat 7 &amp; 8</a> says <strong>sslProtocol</strong> is no longer used in java 8</p>