Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The JAR throws "no such provider: SunJSSE" in IBM Websphere Runtime environment #17

Closed
ashviswam opened this issue Feb 7, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ashviswam
Copy link

ashviswam commented Feb 7, 2020

This line of code in AuthenticationUtils results in a "provider not found" exception in Websphere.
KeyStore.getInstance("PKCS12", "SunJSSE");

In Websphere, the equivalent provider is com.ibm.jsse2.IBMJSSEProvider2

According to Oracle documentation -

General purpose applications SHOULD NOT request cryptographic services from specific providers
getInstance("...", "SunJCE"); // not recommended
// ... versus ...
getInstance("..."); // recommended

https://docs.oracle.com/javase/7/docs/technotes/guides/security/SunProviders.html.

The code should say, KeyStore.getInstance("PKCS12") and allow the runtime to select security providers based on the environment.

@jaaufauvre jaaufauvre self-assigned this Feb 10, 2020
@jaaufauvre jaaufauvre added the enhancement New feature or request label Feb 10, 2020
@ashviswam
Copy link
Author

@jaaufauvre , Thanks a ton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants