4

有人知道 PayPal 沙箱中遇到的错误是什么问题吗?

上次它工作了好几个月,我们更换了服务器,IPN 停止工作。我们不确定是 PayPal 问题还是我们的问题。

在 Web 服务器访问日志中,没有显示 PayPal IPN POST 日志的条目,我们无法找出问题所在。

IPN 传递失败:I/O 错误:RSA premaster secret 错误;嵌套异常是 javax.net.ssl.SSLKeyException: RSA premaster secret error

https://developer.paypal.com/webapps/developer/applications/ipn_simulator

在此处输入图像描述


额外信息: 我们在一个 IP 中使用两个不同的子域和两个 SSL 证书。

例子 :

https://www.example.com/ - 用于主网站(SSL 证书 A)

https://ipn.example.com/ - 用于 PayPal IPN(SSL 证书 B)

<VirtualHost x.x.x.x:443>
    ServerName ipn.example.com
    DocumentRoot "/path/to/ipn.example"

    SSLEngine on
    SSLCertificateFile "/path/to/ipn_example_com.crt"
    SSLCertificateKeyFile "/path/to/ipn_example_com.key"
    SSLCertificateChainFile "/path/to/CA1.pem"
</VirtualHost>

<VirtualHost x.x.x.x:443>
    ServerName www.example.com
    ServerAlias example.com
    DocumentRoot "/path/to/www.example"

    SSLEngine on
    SSLCertificateFile "/path/to/www_example_com.crt"
    SSLCertificateKeyFile "/path/to/www_example_com.key"
    SSLCertificateChainFile "/path/to/CA2.pem"
</VirtualHost>

xxxx 是 IP 地址(两个 IP 相同)

4

2 回答 2

2

我遇到了同样的问题,似乎 IPN 模拟器无法正确处理 https。(或者 RSA 密钥超过 1024 位可能有问题?)我无法使用模拟器,但如果我使用 Paypal 商业/消费者帐户测试所有内容(在沙箱中)并伪造购买,我确实会收到 IPN 消息发送给我的处理程序。

于 2013-04-17T13:05:55.013 回答
1

您可能想要设置环境变量 JAVA_EXT_DIRS 哪个值将是 [..]jre\lib\ext 的路径

SunTlsRsaPremasterSecret KeyGenerator not available的公认答案可能会有所帮助

其他相关帖子可以在网上找到:

http://forums.pentaho.com/showthread.php?78991-plm-in-4-x-javax-net-ssl-SSLKeyException-RSA-premaster-secret-error

https://issues.apache.org/jira/browse/SMX4-537

于 2013-04-16T19:31:26.623 回答