title: How do you enable TLS 1.2 on Spring-boot?
body: <p>I am trying to enable TLS 1.2 on Tomcat on Spring-boot 1.2.1. Android 5.0 is failing to connect to the default SSL settings, due to an SSL handshake failure. Android 4.4, iOS, Firefox, and Chrome all connect to the default version. I think this is because of a mismatch in the TLS protocols supported in Android 5.0 and the spring boot tomcat defaults (TLS v1?). </p>
  
  <p>I imagine I want to change this application.properties setting:</p>
  
  <pre><code>server.ssl.protocol=TLS
  </code></pre>
  
  <p>but I have not located the other acceptable strings (or if there are any, even). There is no enumeration that I can find by searching on "protocol" in <a href="https://github.com/spring-projects/spring-boot" rel="noreferrer">spring boot github</a>.
  I have tried "TLSv1.2", but this appears to have no effect. </p>
  
  <p>The current SSL configuration in application.properties is:</p>
  
  <pre><code>server.ssl.key-store = chainedcertificates.p12
  server.ssl.key-store-password = secret
  server.ssl.key-store-type = PKCS12
  </code></pre>
  
  <p>How do you enable TLS 1.2 in spring boot?</p>
  
  <p>If it matters, I am using Java 1.7. The documentation for this seems to indicate it should support TLS 1.2. </p>
  
  <p><a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=53952" rel="noreferrer">Tomcat 8 seems to have support present.</a> I am not sure how to check exactly which version is running in spring boot. </p>