-
Notifications
You must be signed in to change notification settings - Fork 298
Description
Because of this issue in Node which changed rejectUnauthorized from default false to true (see nodejs/node-v0.x-archive#3949), the TLS negotiation fails for self-signed certificates. This is very important when testing and before any CA signed certificates are installed in production. Currently there is no way to pass HTTP/HTTPS options into this module. Please consider enhancing the agent issue (see #44) with a more generic option object (similar to the one used by HTTP/HTTPS requests) which also contains a custom Agent. This way users can set the "rejectUnauthorized" to false.
See examples for options format in http://nodejs.org/api/https.html.
I would however suggest passing the options in the Request function rather than constructor to be more in line with HTTP/HTTPS paradigm.