ssl - meteor 错误 : "Tunneling socket could not be established" - SSL issue with properly configured proxy?

标签 ssl curl meteor proxy npm

我在企业代理后面的 Ubuntu 14.04.5 LTS 上使用 Meteor,但无法应用任何更新,甚至无法创建 Meteor 实例。运行 meteor update 给我以下信息:

Unable to update package catalog (are you offline?)

If you are using Meteor behind a proxy, set HTTP_PROXY and HTTPS_PROXY
environment variables or see this page for more details:
https://github.com/meteor/meteor/wiki/Using-Meteor-behind-a-proxy

This project is already at Meteor 1.4.1.1, the latest release.
=> Errors while upgrading packages:

While downloading autoupdate@1.2.11...:
error: tunneling socket could not be established, cause=write EPROTO
139992700094336:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:

等-- 对所有其他包重复最后一个错误。

  • 我已经用我的用户名和密码设置了 HTTP_PROXY 和 HTTPS_PROXY。这些设置似乎适用于除 Meteor 以外的所有东西。例如,APT-GET 代理设置已配置且工作正常
  • NPM 配置了代理和 https-proxy,设置为 ssl-strict=false,并且在 Meteor 之外工作正常。我也试过将寄存器设置为“http://registry.npmjs.org/”——但 Meteor 没有成功。
  • 当我安装 Meteor 时,我需要在 curl 上使用“-k”或“--insecure”选项,否则我会收到 SSL 错误。使用此选项 (curl -k https://install.meteor.com/ | sh),Meteor 安装正常且没有任何错误

    我已经看到几个关于此错误的问题,并且修复程序适用于 NPM 等。在 Meteor 之外,但对于 Meteor,我仍然被卡住了。 meteor 更新是否有类似的“--insecure”选项?或者有没有我可以添加类似选项的脚本? Meteor 实际使用什么机制来请求更新?

最佳答案

设置 https_proxy=http://{proxy} 对我有用!

关于ssl - meteor 错误 : "Tunneling socket could not be established" - SSL issue with properly configured proxy?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39185234/

相关文章:

rest - curl:如何在 Windows 上使用 Kerberos 而不是 NTLM 身份验证?

javascript - 模式不允许文件链接

css - 启用 SSL 后,Magento 自定义主题/包 CSS 无法正常工作

android - 从 android app 绕过 ssl 证书好/推荐吗?如果证书每年都在生产中更改

perl - 如何使用 curl 将带空格的字符串作为 http POST 数据传递

curl - couchdb 如何列出数据库上的所有用户?

mongodb - Meteor 应用程序 — 重置已部署应用程序的数据库

javascript - Meteor react js登录用户邮箱

java - weblogic.net.http.SOAPHttpsURLConnection 无法转换为 javax.net.ssl.HttpsURLConnection

php - cURL 作为代理,处理 HTTPS/CONNECT 方法