Heroku: UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate
Asked Answered
K

3

7

I am facing issue in creating an new heroku app on cli

C:\sami\foodOrder\foodOrder>heroku create
Creating app... !
 !    UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate

This is even happening on a clone of existing app

Kandi answered 13/1, 2017 at 8:4 Comment(1)
I'm having the same problem. I'm behind a corporate firewall. I've already set my HTTP_PROXY and HTTPS_PROXY environment variables correctly, I also set git's http.sslVerify to false and I set npm's ssl-strict to false. Git and NPM work by themselves work fine. 'heroku login' works fine too, but 'heroku create' fails.Mcmann
B
8

As a temporary workaround you can disable SSL verification by setting an environment variable:

HEROKU_SSL_VERIFY=disable

Bowline answered 7/2, 2017 at 12:52 Comment(0)
T
0

Yesterday Heroku made the new toolbelt product mandatory by introducing various intentional but obscure errors when using the old libraries, and I ran into this issue after upgrading. I expect others will stumble upon this too, so I'm adding my solution.

I had set the SSL_CERT_FILE environment variable to a specific certs file to fix this issue with local SSL certs in Ruby on Windows, and while that worked with the old Heroku library, the new one requires additional trusts (see path/to/Heroku/lib/cacert.pem).

The solution for me was to remove the SSL_CERT_FILE environment variable and instead set it in my specific environments using my existing Figaro config file. After that, heroku ran without issue.

Tenenbaum answered 14/7, 2017 at 16:4 Comment(0)
L
0

Add the following to your .bowerrc file...

"registry": "http://bower.herokuapp.com"
Linnie answered 9/8, 2017 at 16:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.