title: require('https') vs require('tls')
body: <p>I'm trying to create a very secure connection between client and server using Node.js, Express.js and TLS (1.2).</p>
  
  <p>I think my problem is in understanding what TLS actually is - meaning what is being exchanged, when and how by who.</p>
  
  <p>Anyhow, I'm searching the internet like a nutter (crazy person) to try and figure out following:</p>
  
  <ul>
  <li>what does <code>var tls = require('tls');</code> invoke?</li>
  <li>what does <code>var https = require('https');</code> invoke?</li>
  </ul>
  
  <p>I can get tls working when using another node as a client, but in this case the client will be a user in a browser. Can I use both for a browser or only https??</p>
  
  <p>Thanks</p>