Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

x509: certificate signed by unknown authority

I'm trying to make the login in heroku but I get this:

$ heroku login
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden):
 ▸    Post https://api.heroku.com/login: x509: certificate signed by unknown authority

I already try to generate a ssl certificate but it cannot solve the problem. I don't know if it is problem or not of the ssl.

Can anyone help me with this?

Thank's in advance.

like image 952
PRVS Avatar asked Sep 08 '16 11:09

PRVS


4 Answers

Running this command worked for me:

HEROKU_SSL_VERIFY=disable heroku login

like image 98
mcqnyc Avatar answered Sep 22 '22 13:09

mcqnyc


I was having the same error and a simple update of heroku-cli on my machine fixed it! I'm running macOS Sierra 10.12.2 and originally installed heroku with homebrew... But this command should work with any operating system, assuming that you're using heroku-cli (heroku command line interface)

So first just run:

$ heroku update

You should get the output:

heroku-cli: Updating plugins... done

heroku-cli: Updating... done.

Then try and login again:

$ heroku login

Hope this helps someone!

like image 40
Jamie Curnow Avatar answered Sep 22 '22 13:09

Jamie Curnow


This command will tell you more, type in the terminal:

curl -I https://api.heroku.com/login -vvv

One possible reason is DNS poison.

like image 41
周长林 Avatar answered Sep 21 '22 13:09

周长林


unable to get local issuer certificate shows you missing the CA, api.heroku.com was signed by DigiCert_High_Assurance_EV_Root_CA.crt, please refer to this post to check your CA, especially that mozilla/DigiCert_High_Assurance_EV_Root_CA.crt is NOT disabled.

like image 38
Allen Avatar answered Sep 18 '22 13:09

Allen