LoginSignup
2
2

More than 3 years have passed since last update.

Node - Error: unable to verify the first certificate

Posted at

Using https or wss to create a client connection. And it will create failed.

Error: unable to verify the first certificate

Added the below code to disable the SSL check.

process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;

https://blog.darkthread.net/blog/npm-unable-get-local-issuer-cert-issue/
https://medium.com/nodejs-tips/ssl-certificate-explained-fc86f8aa43d4

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2