4

PayPal サンドボックスで発生したエラーに関する問題を知っている人はいますか?

前回は何ヶ月も正常に機能していましたが、サーバーを変更したところ、IPN が機能しなくなりました。PayPalの問題なのか、私たちの問題なのかわかりません。

Web サーバーのアクセス ログに PayPal IPN POST ログのエントリが表示されず、何が問題なのかわかりません。

IPN 配信に失敗しました:I/O エラー: RSA プリマスター シークレット エラー。ネストされた例外は javax.net.ssl.SSLKeyException: RSA premaster secret error です

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

ここに画像の説明を入力


追加情報: 1 つの IP で 2 つの SSL 証明書を持つ 2 つの異なるサブドメインを使用しています。

例 :

https://www.example.com/ - メイン Web サイト用 (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 を適切に処理できないようです。(または、1024 ビットを超える RSA キーに問題があるのでしょうか?) シミュレーターを使用できませんが、Paypal のビジネス/消費者アカウントを使用して (サンドボックスで) すべてをテストし、購入を偽造すると、IPN メッセージが送信されます。私のハンドラーに。

于 2013-04-17T13:05:55.013 に答える
1

[..]jre\lib\ext へのパスとなる環境変数 JAVA_EXT_DIRS を設定するとよいでしょう。

SunTlsRsaPremasterSecret KeyGenerator が利用できないという受け入れられた回答が役立つかもしれません

ウェブ上で見つけることができるその他の関連記事:

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 に答える