Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SELF_SIGNED_CERT_IN_CHAIN error while using Heroku Cli

Tags:

heroku

I'm try to use Heroku CLI.

But when I want to do some commamd like:

heroku login, heroku log, etc.

The below error will show

SELF_SIGNED_CERT_IN_CHAIN self signed certificate in certificate chain

How can I sovled it?

like image 722
jim Avatar asked Mar 29 '18 03:03

jim


People also ask

Why heroku login is not working?

Double check that there are no typos in your password as well. Reset your password and try logging in with the new password. Try using a different email address. Try using an email alias with a plus sign if you might have signed up using an alias such as [email protected] instead of just [email protected].

How do I update my heroku to latest version?

If you installed the CLI with apt , you must use sudo apt-get update && sudo apt-get upgrade heroku . If you installed the CLI with npm or yarn , you must use npm upgrade -g heroku or yarn global upgrade heroku .

How do I run heroku bash?

Install Heroku on Windows machine as per the site instructions. Then, with Git Bash closed, open the Windows "Command Prompt" and type "heroku login". You will be prompted for your Heroku username and password and you're in! Close the command prompt and use bash as per normal.


1 Answers

I had the same issue however this helped me:

Verify your proxy export

export NO_PROXY='localhost,localnets, <company proxy IP settings>

Then verifying my companies .pem file stored in my user directory:

export NODE_EXTRA_CA_CERTS=~/.ssh/bc.pem

(or wherever you store it.)

Then try

heroku login
like image 150
Aaron Moreno Avatar answered Sep 22 '22 02:09

Aaron Moreno