如何修复这些OpenSSL和Rails证书验证失败的错误?

时间:2014-03-14 17:26:32

标签: ruby gem openssl

在某些时候,我在尝试更新gems时开始收到此错误:

  

SSL_connect返回= 1 errno = 0状态= SSLv3读取服务器证书B:证书验证失败

如何调试和修复此问题?

1 个答案:

答案 0 :(得分:0)

http://railsapps.github.io/openssl-certificate-verify-failed.html

详细说明如何解决:

openssl::ssl::sslerror: ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed

could not load openssl. you must recompile ruby with openssl support or change the sources in your gemfile from 'https' to 'http'. instructions for compiling with openssl using rvm are available at rvm.io/packages/openssl.