使用 openshift nodejs 应用程序接收"SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: sslv3 ale



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

我们已经通过谷歌和脸书实现了护照认证用户。我已经验证了自己的身份,我们仍然可以使用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来修复它。在命令行键入:

sudo gem update httpclient

或者,您也可以通过在.openshift/express.conf文件中添加以下内容来修复它:

ssl_version=tlsv1

这两个修复程序本质上都告诉你的应用程序使用TLSv1而不是SSLv3。

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

我在带有ruby 1.9.3和httpclient 2.3.4.1 的Windows上遇到了同样的问题

gem update httpclient将其更新为2.5.3.3,从而修复了该问题。

最新更新