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

meen
  • 2,287
  • 3
  • 23
  • 42
Samdeesh
  • 905
  • 11
  • 23
  • 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. – Jeff McCloud Jan 13 '17 at 22:15

3 Answers3

8

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

HEROKU_SSL_VERIFY=disable

Lukasz Wiktor
  • 19,644
  • 5
  • 69
  • 82
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.

zrisher
  • 2,215
  • 1
  • 16
  • 12
0

Add the following to your .bowerrc file...

"registry": "http://bower.herokuapp.com"
mintedsky
  • 1,073
  • 13
  • 18