title: How to enforce netty server to communicate over TLS 1.2?
body: <p>My Netty application is running as TCP Socket server on JDK1.8 . JDK 1.8 supports TLS 1.0, TLS 1.1 and TLS 1.2 . </p>
  
  <p>We want to enforce the communication between TCP server and client over TLSv1.2 at server side (no lower protocol needs to be used) . </p>
  
  <p>Below is the code snippet :</p>
  
  <pre><code>{ 
  KeyStore ks = KeyStore.getInstance("JKS");
          ks.load(new FileInputStream("JKS location"), "password");
          KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
           kmf.init(ks, "password".toCharArray());
          SslContext sslContext = SslContextBuilder.forServer(kmf).build();
          pipeline.addLast(sslContext.newHandler(socketChannel.alloc()));
  }
  </code></pre>
  
  <p>How can we enforce netty server to communicate over TLS1.2 protocol only ?</p>