Unable to verify first Certificate
See original GitHub issue[DEBUG][2016-09-30T20:29:04.465Z][undefined] Entering state: 1
[ERROR][2016-09-30T20:29:04.725Z][undefined] Could not connect to server Error: Could not open socket: unable to verify the first certificate
[DEBUG][2016-09-30T20:29:04.725Z][undefined] Entering state: 5
[DEBUG][2016-09-30T20:29:04.725Z][undefined] Closing connection...
Any Ideas?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Error: unable to verify the first certificate in nodejs
It means that the webserver you are connecting to is misconfigured and did not include the intermediate certificate in the certificate chain it...
Read more >Postman responds to API calls with "Error: Unable to verify the ...
Open Postman, then select File -> Settings · Select the General tab. · Move the slider for SSL certificate verification to the OFF...
Read more >Unable to Verify the First Certificate with OpenSSL - Pavol Kutaj
This error means that the certificate chain is broken for OpenSSL — but does not have to be for browsers! Why? Because browsers...
Read more >Error: unable to verify the first certificate. How to fix? - NodeBB
As that answer on SO says, the error unable to verify the first certificate means that the webserver you are connecting to is...
Read more >Unable to Verify First Cert Issue - Enable SSL Cert Verification
Navigate to Certificate > Web Hosting > Certificates and select your SSL cert · Then right click and select “All Task” & “Export”...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
DO NOT DO THIS! If you have a custom domain, please use proper certificates via letsencrypt. If this is for testing, please generate a trusted certificate via mkcert!
Dug into the code, this is not actually related to this repository, it’s coming from the node socket library.
Looks like there is some confusion with the cert we are using, it’s accepted by other code and libraries on other platforms and clients, just not by the node socket.
Since this is an internal facing only application I’ve worked around it by doing this: process.env.NODE_TLS_REJECT_UNAUTHORIZED = “0”; Which temporarily overrides and allows it to work with our faulty cert.
This is entirely unsafe to do in most other circumstances, more info here: http://stackoverflow.com/questions/31673587/error-unable-to-verify-the-first-certificate-in-nodejs