node-XMLHttpRequest
node-XMLHttpRequest copied to clipboard
HTTPS requests fail for self-signed server certificates
Because of this issue in Node which changed rejectUnauthorized from default false to true (see joyent/node#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 https://github.com/driverdan/node-XMLHttpRequest/issues/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.
+1. Using this for testing a web app.
+1
+1
This would be great to have. +1
+100
+1
+1
This ticket has been open for six years. This problem is blocking my tests. Is there a workaround?