gpt4 book ai didi

ruby-on-rails - PayPal 的 ActiveMerchant Poodle 补丁

转载 作者:太空宇宙 更新时间:2023-11-03 13:09:41 27 4
gpt4 key购买 nike

我正在使用 Rails 3、ActiveMerchant 1.5.1 gem 和 PayPal express。由于最近我无法通过 PayPal 进行付款,继续收到此错误

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

我相信这与 PayPal response to Poodle 有关. ActiveMerchant 是否有任何补丁来解决这些 PayPal 更改或一般的 SSL 3.0 漏洞?

最佳答案

感谢 Eshan,我发现 Net::Http 可以在连接期间强制使用特定协议(protocol)。这就是我修补我的 ActiveMerchant 版本的方式

def configure_ssl(http)
...

http.use_ssl = true

http.ssl_version = :TLSv1 # poodle vulnarability fix

...
end

对于那些拥有更新版本的 ActiveMerchant 的人,我认为按照 Davidslv 的建议升级到 master 应该可行。

关于ruby-on-rails - PayPal 的 ActiveMerchant Poodle 补丁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26482758/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com