【发布时间】: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 <hostname>:<port> -tls1 -servername <hostname> | openssl x509 -text -noout的输出。通过单击编辑将其添加到您的问题中(不要将其作为评论发布)。否则,没有足够的信息来解决它。
标签: ruby-on-rails ruby openssl activemerchant