我在openshift上有一个nodejs应用程序,当我们在本地开发时,我们使用rhc port-forward命令连接到我们的数据库。
我们已经实施了通过谷歌和Facebook验证用户的护照。我已经验证了我的自我,我们仍然可以使用rhc命令。我的合作伙伴最近通过脸书验证了自己,不久之后(约1周),我们抛出了这个错误。不知道这是否完全相关,但包括在内并不会有什么坏处。
Connection to openshift.redhat.com failed: A secure connection could not be established to the server
(SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: sslv3 alert handshake failure). You may
disable secure connections to your server with the -k (or --insecure) option
'https://openshift.redhat.com/broker/rest/api'.
If your server is using a self-signed certificate, you may disable certificate checks with the -k (or
--insecure) option. Using this option means that your data is potentially visible to third parties.
有关如何解决此问题的任何想法?我在其他堆栈问题上看到了这个错误,但是我看到的每一个问题,提出问题的人都在使用ruby。
答案 0 :(得分:13)
这可能是POODLE SSLv3崩溃的结果。您可以通过更新httpclient ruby gem来修复它。在命令行输入:
sudo gem update httpclient
或者您也可以通过在.openshift / express.conf文件中添加以下内容来修复它:
ssl_version=tlsv1
这两个修复本质上都告诉您的应用使用TLSv1而不是SSLv3。
答案 1 :(得分:7)
rhc gem已更新,请运行gem update rhc
,您将获得最新的固定版本。
答案 2 :(得分:1)
我在Windows上遇到了与ruby 1.9.3和httpclient 2.3.4.1相同的问题
gem update httpclient
将其更新为2.5.3.3,从而解决了问题。