【问题标题】:Activemerchant SSL_connect returned=1 errno=0 state=SSLv3Activemerchant SSL_connect 返回=1 errno=0 状态=SSLv3
【发布时间】:2023-04-06 17:19:01
【问题描述】:

我在使用活跃商家创建新的 Paypal 通知时收到此错误

class PaymentNotificationsController < ApplicationController
  include ActiveMerchant::Billing::Integrations

  protect_from_forgery except: :create

  def create
    notify = Paypal::Notification.new(request.raw_post)

payment_notifications#create 中发生 OpenSSL::SSL::SSLError: SSL_connect 返回=1 errno=0 state=SSLv3 读取服务器证书B: 证书验证失败 /home/user/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/net/http.rb:918:in `连接'

  • Activemerchant 版本:1.47.0
  • Ruby 版本:ruby 2.0.0p598(2014-11-13 修订版 48408)[x86_64-linux]
  • Rails 版本:3.2.16
  • Ubuntu 版本:Ubuntu 14.04.2 LTS
  • Openssl 版本:OpenSSL 1.0.1f 2014 年 1 月 6 日

有什么建议吗?

【问题讨论】:

  • 这里有一个解决这个问题的方法:gist.github.com/luislavena/f064211759ee0f806c88
  • 请发布您用于连接服务器的确切 URL,并发布 openssl s_client -connect &lt;hostname&gt;:&lt;port&gt; -tls1 -servername &lt;hostname&gt; | openssl x509 -text -noout 的输出。通过单击编辑将其添加到您的问题中(不要将其作为评论发布)。否则,没有足够的信息来解决它。

标签: ruby-on-rails ruby openssl activemerchant


【解决方案1】:

几件事:

  1. 确保您的证书在您的计算机上是最新的。

  2. 这让我之前解决了这个错误:https://github.com/stevegraham/certified

祝你好运。希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 2015-03-01
    • 1970-01-01
    • 2019-04-03
    • 2013-01-21
    • 1970-01-01
    • 2013-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多