use https but bypass certificate check node code example Example: node tls reject unauthorized process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;