Added support for the rejectUnauthorized tls option