【问题标题】:Active Merchant Paypal Recurring Pem Error Neither Pub Nor Priv Key活跃商家 Paypal 经常性 Pem 错误既不是 Pub 也不是 Priv 密钥
【发布时间】:2011-02-09 07:03:33
【问题描述】:

我正在尝试使用 ActiveMerchant 进行 Paypal Recurring 交易调用。我在这里使用了补丁:

http://blog.vuzit.com/2008/08/01/paypal-website-payments-pro-us-with-recurring-billing-and-activemerchant/

我被困在这里:

ActiveMerchant::Billing::PaypalGateway.pem_file = File.read('paypal_cert.pem')

我相当确定 pem 文件已从 paypal 正确下载。我收到的错误是:

/Library/Ruby/Gems/1.8/gems/activemerchant-1.5.1/lib/active_merchant/lib/connection.rb:129:in `initialize': Neither PUB key nor PRIV key:: nested asn1 error (OpenSSL::PKey::RSAError)
 from /Library/Ruby/Gems/1.8/gems/activemerchant-1.5.1/lib/active_merchant/lib/connection.rb:129:in `new'

from calling the commit method from line 49 of paypal_pro_recurring.

我只有 2 个文件——教程中的 paypal_pro_recurring.rb 和我编写的 paypalTest.rb,它们只需要所有文件并调用该函数。我希望错误不是像我必须从环境文件或其他东西中要求的那样愚蠢的东西。谢谢大家!

【问题讨论】:

    标签: paypal activemerchant pem


    【解决方案1】:

    PayPalGateway 是否需要密码?也许你忘记了。

    当我为私钥输入错误的密码时,我收到了类似的错误消息(尽管在其他网关中)。

    【讨论】:

      猜你喜欢
      • 2013-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-20
      • 1970-01-01
      • 2014-02-14
      • 1970-01-01
      • 2014-04-30
      • 1970-01-01
      相关资源
      最近更新 更多