Merge pull request #363 from angelaigreja/master

Fix the need for rejectUnauthorized being false.
Allow the user supplied tlsOptions to overridde the host name used for certification validation.