2013-04-13 94 views
4

人知道什麼是關於在貝寶沙箱中遇到的錯誤的問題?SSL錯誤/ RSA預置密碼錯誤

這是工作的罰款月最後一次,我們改變了我們的服務器和IPN停止工作。我們不確定是PayPal問題還是我們的問題。

在Web服務器的訪問日誌就沒有了顯示的貝寶IPN POST日誌條目,我們想不出有什麼問題。

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

enter image description here


額外的信息: 我們使用在單一的IP兩個SSL證書的兩種不同的子域。

實施例:

https://www.example.com/ - 對於主網站(SSL證書A)

https://ipn.example.com/ - 貝寶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是相同的)

+0

你知道客戶端使用的Java版本? – Bruno

+0

對不起,我不知道。 – xDragonZ

+1

我不認爲它與你的問題有關,但如果它至少沒有使用Java 7,它可能有問題連接到你的服務器。您正在使用您的服務器上SNI(二級證書,同一個IP地址/端口),而這僅僅因爲支持Java 7中 – Bruno

回答

1

你可能要設置環境變量JAVA_EXT_DIRS其價值將是路徑[..]的jre \ lib中\分機

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

+0

的Java錯誤是來自PayPal – xDragonZ

+0

你能打開與PayPal客戶服務的票證/問題? –

2

我遇到了同樣的問題,它好像在IPN模擬器無法處理HTTPS p roperly。 (或者它可能在1024位以上的RSA密鑰有問題?)我無法使用模擬器,但是如果我使用PayPal業務/消費者帳戶測試所有內容(在沙箱中)並假冒購買,我確實會收到發送的IPN消息給我的處理程序。