Error: unable to verify the first certificate
See original GitHub issueI am unable to serve up directories. I used create-react-app, ran a build, and attempted to serve it up.
Ran into this error…
(node:22821) UnhandledPromiseRejectionWarning: Error: unable to verify the first certificate
at TLSSocket.<anonymous> (_tls_wrap.js:1105:38)
at emitNone (events.js:106:13)
at TLSSocket.emit (events.js:208:7)
at TLSSocket._finishInit (_tls_wrap.js:639:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:469:38)
(node:22821) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:22821) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Here are my versions…
{ asdf: '0.1.0',
npm: '5.6.0',
ares: '1.10.1-DEV',
cldr: '32.0',
http_parser: '2.8.0',
icu: '60.1',
modules: '57',
nghttp2: '1.25.0',
node: '8.11.1',
openssl: '1.0.2o',
tz: '2017c',
unicode: '10.0',
uv: '1.19.1',
v8: '6.2.414.50',
zlib: '1.2.11' }
I do have a cafile
set in my .npmrc
file. Another program, httpster
, works fine.
I removed the cafile
setting to no avail.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (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 >Getting certificate errors "unable to get local issuer certificate ...
2. The “error:num=21:unable to verify the first certificate” means that chain of trust is broken right from the start. Typically it ...
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 Free
Top 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
I have the same issue. I just try to do this:
node_modules/.bin/serve --ignore node_modules
. I use nexus3 as registry:my
~/.npmrc
isnode -v
v8.11.1npm -v
6.0.1npm ls --depth=0
npmtest@1.0.0 /tmp/npmtest ├── lodash@4.17.10 └── serve@6.5.6Closing this now, as this issue is not related to serve, but rather to the way how you’re installing it from npm.
Thank you for the effort you’ve put into this!
Please also read the docs for the new release.
🙏