PayPal NVP: how to use SunX509 for IBM JRE

Im integrating paypal api for my company with NVP mode. The application must be running on the Websphere application server.

In the paypal SDK kernel, it actually uses the SSLUtil class (line 37): KeyManagerFactory.getInstance ("SunX509"). this does not work on the IBM JRE. WAS uses the IbmX509.

What if I do not want to change the PayPal class?

Thanks for answering?

Hello!

Stevens

+4
source share
1 answer

Please use the following branch to get the fix. Create and use this kernel with the SDK.

https://github.com/paypal/sdk-core-java/tree/fix-keymanagerfactory-ibm

The SSLUtil class has been changed as follows, which should fix it for IBM, as well as for Oracle JRE.

KMF = KeyManagerFactory.getInstance (KeyManagerFactory.getDefaultAlgorithm ());

We made him agnostic for the JRE provider.

+3
source

Source: https://habr.com/ru/post/1500467/


All Articles