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
More Related Contents:
- Enabling HTTPS on express.js
- Automatic HTTPS connection/redirect with node.js/express
- Error: unable to verify the first certificate in nodejs
- How to configure axios to use SSL certificate?
- create a trusted self-signed SSL cert for localhost (for use with Express/Node)
- receiving error: ‘Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN’ while using npm
- Node.js https pem error: routines:PEM_read_bio:no start line
- How do I setup a SSL certificate for an express.js server?
- How to force SSL / https in Express.js
- Assigning a domain name to localhost for development environment
- How to create .pem files for https web server
- Is it Possible to Dynamically Return an SSL Certificate in NodeJS?
- Nodejs HTTP and HTTPS over same port
- How do I use a self signed certificate for a HTTPS Node.js server?
- how to use async await with https post request
- How do I use the node.js request module to make an SSL call with my own certificate?
- The difference between “require(x)” and “import x”
- Understanding passport serialize deserialize
- possible EventEmitter memory leak detected
- How to store Node.js deployment settings/configuration files?
- Configure Node.js to log to a file instead of the console
- How can I configure multiple sub domains in Express.js or Connect.js
- Bower: “command not found” after installation
- Importing node-modules with TypeScript
- Send custom data along with handshakeData in socket.io?
- GraphQL Expected Iterable, but did not find one for field xxx.yyy
- How to use D3 in Node.js properly?
- Best way to execute parallel processing in Node.js
- Fail to connect Mongoose to Atlas
- Websocket transport reliability (Socket.io data loss during reconnection)