且构网

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

Ruby Gem Twitter - 证书验证失败(Twitter :: Error :: ClientError)

更新时间:2021-09-09 21:56:37

我能解决我自己的问题。对于具有相同问题的用户,请尝试使用以下内容:

I was able to solve my own question. For those having the same issue try using the following:

OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

它会禁用SSL安全性,但它允许您处理故障排除。根本问题是过时的SSL。

It disables the SSL security but it allows you to process with troubleshooting. The underlying issue is an outdated SSL.