且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

OpenSSL :: SSL :: SSL错误:SSL_connect返回= 1 errno = 0状态=错误:证书验证失败

更新时间:2022-11-06 21:53:30

我的猜测是您客户的Web应用程序的SSL证书存在问题.可能是证书过期或无效.您可以尝试这个答案.

My guess is that there is a problem with the SSL cert for your client's web app. Perhaps there is a certificate that is out of date or invalid. You could try this answer.

如果您需要解决此问题(但由于潜在的安全漏洞,可能不是一个好的永久解决方案),则应该能够通过将其放在Bundler.require之前的应用程序中来关闭证书验证./p>

If you need to get around this (but probably not a good permanent solution, because of the potential security hole) you should be able to turn off the certificate verification by putting this before Bundler.require in your application.rb:

require 'openssl'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE