Samdeesh
Samdeesh

Reputation: 945

Heroku: UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate

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

Upvotes: 7

Views: 5772

Answers (3)

mintedsky
mintedsky

Reputation: 1103

Add the following to your .bowerrc file...

"registry": "http://bower.herokuapp.com"

Upvotes: 0

zrisher
zrisher

Reputation: 2285

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.

Upvotes: 0

Lukasz Wiktor
Lukasz Wiktor

Reputation: 20422

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

HEROKU_SSL_VERIFY=disable

Upvotes: 8

Related Questions