SSL错误/ RSA premaster秘密错误 [英] SSL Error / RSA premaster secret error
问题描述
人知道什么是对,在贝宝沙箱中遇到的错误的问题?
anyone know what is the problem regarding the error that encountered in the PayPal sandbox?
这是为最后一次月工作正常,我们改变了我们的服务器和IPN停止工作。我们不知道是贝宝的问题还是我们的问题。
It was working fine for months last time and we changed our server and IPN stopped working. We are not sure is PayPal issue or our issue.
在Web服务器的访问日志有没有PayPal的IPN POST日志条目多达所示,我们无法弄清楚是什么问题。
In the web server access log there's no entry of the PayPal IPN POST log shown up and we can't figure out what is the problem.
IPN传递失败:I / O错误:RSA premaster秘密的错误;嵌套的例外是javax.net.ssl.SSLKeyException:RSA premaster秘密误差
IPN Delivery Failed:I/O error: RSA premaster secret error; nested exception is javax.net.ssl.SSLKeyException: RSA premaster secret error
https://developer.paypal.com/webapps/developer/applications/ipn_simulator
额外的信息:
我们正在使用一个IP有两个SSL证书,两个不同的子域。
Extra info : We are using two different sub domain with two SSL certificate in a single IP.
的 示例:的
Example :
https://www.example.com/ - 对于主网站(SSL证书A)
https://www.example.com/ - For main website (SSL cert A)
https://ipn.example.com/ - 贝宝IPN(SSL证书B)
https://ipn.example.com/ - For PayPal IPN (SSL cert 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>
X.X.X.X是IP地址(这两个IP是相同的)
x.x.x.x is an IP address (Both IP is the same)
推荐答案
我遇到了同样的问题,它好像在IPN模拟器无法妥善处理HTTPS。 (或者它拥有超过1024位与RSA密钥的麻烦?)我不能使用模拟器,但如果我使用的是贝宝的商业/消费账户和假购买,以测试一切(在沙箱),我就被送进IPN消息我的处理程序。
I have run into the same problem and it seems as if the IPN Simulator is unable to handle https properly. (or perhaps it has trouble with RSA keys over 1024 bits?) I am unable to use the simulator, but if I test everything (in the sandbox) using a Paypal business / consumer accounts and fake a purchase, I do get IPN messages sent to my handler.
这篇关于SSL错误/ RSA premaster秘密错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!