title: How to disable tls 1.0 and use only tls 1.1 using nodejs
body: <p>I want to disable the TLS v1.0 and use TLS 1.1 and above only.</p>
  
  <p>By nodejs, I use the <code>https</code> module, how to set the https options?</p>
  
  <p>I have read the api doc <a href="https://nodejs.org/api/tls.html" rel="noreferrer">node api tls</a>, but I still don't know how to set this.</p>
  
  <p>I think it depends on the <code>secureProtocol</code> and <code>cipher</code>, but I just don't know how to set the value.</p>
  
  <p>My node version is 0.10.36, and openssl version is 0.9.8j.</p>