reactjsnode.jsfirewallsignature

Node doesn't see certificate leaf_signature


npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE npm ERR! request to https://registry.npmjs.org/cra-template failed, reason: unable to verify the first certificate

I got this error while running npx create-react-app ./ or other else command using **npm **install. I have had never before such an error. Should i set environmental variable or something? I'm working on Windows.

Turning of firewall woTurning of firewall works, but i don't want to do it every time.rks, but i don't want to do it every time.


Solution

  • It's the last ESET update:

    https://forum.eset.com/topic/40702-eset-ssl-protection-produces-an-invalid-certificate-chain-for-nodejs-apps/

    You can fix it temporarily and ESET will fix it permanently with an update. So whatever you do, you should undo it later.

    Quick fix:

    1. Go to Network Setting / Advanced Settings (this might differ)
    2. SSL/TLS
    3. Edit on Application Scan Rules
    4. Add Node (node.exe) as an exception. Select "ignore"

    You could also disable SSL entirely on ESET, but is better to just disable what has the issue. Just remember to re-enable it later, once ESET rolls out the fix-update.

    There are other ways to fix it temporarily (waiting for ESET official update):