设置 heroku 帐户时出现问题:“警告:无法验证 api.heroku.com 的 SSL 证书”
我正在尝试将应用程序部署到 heroku 上,只是为了测试该过程。我的应用程序位于 github 上(位于 https://github.com/toastkid/fooapp)以及我所有的 github ssh的东西就设置好了。我正在关注这里的教程:
http://devcenter.heroku.com/articles/quickstart
我在第 3 步,说“heroku create”并输入我的 heroku 电子邮件和密码。我这样做了,然后我就得到了这个:
WARNING: Unable to verify SSL certificate for api.heroku.com
To disable SSL verification, run with HEROKU_SSL_VERIFY=disable
在我尝试使用禁用的 ssl 选项运行它之前,我想让它正常工作。有人知道可能是什么问题吗?
谢谢,马克斯
I'm trying to deploy an app onto heroku, just to test out the process. My app is on github (at https://github.com/toastkid/fooapp) and all my github ssh stuff is set up. I'm following the tutorial here:
http://devcenter.heroku.com/articles/quickstart
I'm at step 3, where i say "heroku create" and enter my heroku email and password. I do this, and i just get this back:
WARNING: Unable to verify SSL certificate for api.heroku.com
To disable SSL verification, run with HEROKU_SSL_VERIFY=disable
Before i try running it with that disabled ssl option i'd like to get it working normally. Anyone know what the problem might be?
thanks, max
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚将
HEROKU_SSL_VERIFY=disable
添加到我的.bashrc
中。不幸的是,我不知道如何以其他方式解决这个问题。自从我将heroku gem更新到2.0.5后,这个东西开始出现在我的控制台中......I've just added
HEROKU_SSL_VERIFY=disable
to my.bashrc
. Unfortunately, I don't know how to fix this in other way. This thing started to appear in my console since I've updated heroku gem to 2.0.5…发生这种情况是因为您的计算机中可能没有安装可信证书,或者您所在的公司网络可能具有过滤软件包的防火墙。当防火墙打开安全包时,它可能会附加自签名证书。如果此自签名证书未正确安装在您的计算机中,您可能会收到错误消息。
您可以验证使用 Git 或 Pypi 等其他应用程序是否会遇到相同的错误。
如果您位于公司网络中,
HEROKU_SSL_VERIFY=disable
是最佳解决方案,因为您知道自己处于安全的环境中;否则,您应该验证计算机中安装的可信证书。只是为了补充:
使用
GIT_SSL_NO_VERIFY=true
的 Git 也有同样的解决方案。在 Pypi 中,您可以使用
--trusted-host
参数。It happens because you may not have a trusty certificate installed in your machine, or maybe, you are in a corporate network with a firewall that filter packages. When the firewall open a secure package, it may attach a self-signed certificate. If this self-signed certificate is not proper installed in your machine, you can get the error.
You can verify if you get the same error with another application like Git or Pypi.
If you are in a corporate network,
HEROKU_SSL_VERIFY=disable
is the best solution because you know that you are in a secure environment; otherwise, you should verify the trusty certificates installed in your machine.Merely to complement:
The same solution happens to Git with the
GIT_SSL_NO_VERIFY=true
In Pypi you can use the
--trusted-host
parameter.