adamvr/MQTT.js — pull request #129 by anjz (2013-08-29 13:07:58+00:00)
Title: 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
};