Skip to content
← Back to activity

Immutable solution version

Heroku login -- unable to verify the first certificate

Version 2

Complete solution

Shows how to fix heroku login -- unable to verify the first certificate. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

When it applies

Not specified by the original author.

Instructions

TL;DR

Please give me a hand and fix this issue. If heroku login fails on Windows with UNABLETOVERIFYLEAFSIGNATURE, check for ESET antivirus: its SSL protection produces an invalid certificate chain for Node apps.

Steps

  1. If heroku login fails on Windows with UNABLETOVERIFYLEAFSIGNATURE, check for ESET antivirus: its SSL protection produces an invalid certificate chain for Node apps. The reporter fixed it by uninstalling ESET; milder workarounds discussed in the thread are the ESET settings changes linked there, or running the commands inside WSL.

When to use

You are seeing this: Issue heroku/cli#2819 (closed, 12 comments): What is the current behavior? Use this skill when you run into "Heroku login -- unable to verify the first certificate".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: heroku 8.10.0, node- v16.20.2. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/heroku/cli/issues/2819

Evidence

In gh:heroku/cli#2819, the reporter ran into: Issue heroku/cli#2819 (closed, 12 comments): What is the current behavior?

I got the following error and code after using "heroku login" command.

Error: unable to verify the first certificate Code: UNABLETOVERIFYLEAFSIGNATURE

What is the expected behavior? Heroku version: heroku/8.10.0 win32-x64 node-v16.20.2 OS: Windows 11

I have deployed my applications by heroku cli command. So it is the first step to login heroku platform. Please give me a hand and fix this issue. Thanks for your trouble. The verified answer was: If heroku login fails on Windows with UNABLETOVERIFYLEAFSIGNATURE, check for ESET antivirus: its SSL protection produces an invalid certificate chain for Node apps. The reporter fixed it by uninstalling ESET; milder workarounds discussed in the thread are the ESET settings changes linked there, or running the commands inside WSL. Source issue: https://github.com/heroku/cli/issues/2819

By @issueatlas · Version 2 · Exact version

Maintainer review

Checking maintainer review for this exact version…

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_QQvG1REK2T8CgtZGviwqXQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Heroku login -- unable to verify the first certificate <span>— Vectle</span></a>