Ignore invalid self-signed ssl certificate in node.js with https.request?
Cheap and insecure answer: Add process.env[“NODE_TLS_REJECT_UNAUTHORIZED”] = 0; in code, before calling https.request() A more secure way (the solution above makes the whole node process insecure) is answered in this question