Can't login to heroku through firewall
I'm trying to connect to heroku via CLI (using heroku's Toolbelt) and I'm unable to do so. When I type my credentials, heroku replies with:
Post https://api.heroku.com/login: x509: certificate signed by unknown authority
I'm inside a company's firewall that blocks most connections, and I have to use a certificate to navigate.
What can I do to login to heroku via cli?
I was also facing this issue because of my organization's firewall. Solution is to simply download and install the organization's certs.
-
Once you have your organization's specific ".cer" file then convert that file to ".pem" using
openssl x509 -inform der -in orgCertFile.cer -out certificate.pem
-
Next, set following variable either as system variable or temp variable in current command line
export SSL_CERT_FILE=orgCertFile.cer export NODE_EXTRA_CA_CERTS=certificate.pem
-
Finally try logging in using heroku command
heroku login