使用openshift nodejs应用程序接收“SSL_connect returned = 1 errno = 0 state = SSLv3读取服务器hello A:sslv3警报握手失败”

我在openshift上有一个nodejs应用程序,我们在本地开发时使用rhc port-forward命令连接到我们的数据库。

我们已经实施护照通过谷歌和通过Facebookvalidation用户。 我已经证实了我的自我,我们仍然可以使用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。

这可能是POODLE SSLv3崩溃的结果。 你可以通过更新httpclient ruby​​ gem来修复它。 在命令行中input:

 sudo gem update httpclient 

或者,您也可以通过将以下内容添加到.openshift / express.conf文件中来解决此问题:

 ssl_version=tlsv1 

这两个修补程序基本上都会告诉您的应用程序使用TLSv1而不是SSLv3。

rhc gem已更新,请运行gem update rhc ,您将获得最新的固定版本。

我在Windows上遇到了与ruby 1.9.3和httpclient 2.3.4.1相同的问题

gem update httpclient更新到2.5.3.3一样,从而解决了这个问题。