TLS connection now accepts a CA list of trusted certificates, just in case you want to use the rejectUnauthorized: true

Bug fixed: some variables which name should be tls_client where renamed to conn.

Improvement on tls: If you want to use rejectUnauthorized: true parameter for an ssl/tls connection you can now supply a CA certs array to be considered as trusted.

e.g.
var options = {
  keyPath: KEY,
  certPath: CERT,
  rejectUnauthorized : true,
  ca: ['./crt.ca.cg.pem'] //list of cert paths
};