support TLS the hard way, sadly...

new options: secureP (boolean), tlsport (integer), crtPath (string), ca
(array of string), rejectUnauthorized (boolean)