splunk/splunk-sdk-javascript — pull request #20 by TheGU (2013-03-16 07:28:40+00:00)
Title: Add strictSSL option to support node.js v0.8+

rejectUnauthorized was introduced in node 0.8 if the https module doesn't find a trusted certificate (like splunk self generated case) then it fails to connect giving a "Error: SELF_SIGNED_CERT_IN_CHAIN" message.

Request module already provide strictSSL option to prevent this problem (I test on v2.16.3) but it's not work with version require by this sdk (v2.9.152).

I fix this problem by upgrade request module to v2.16.3 then edit lib/platform/node/node_http.js file to add "strictSSL: false" to option