-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[native-image] Bouncycastle Provider #1693
Comments
This issue contains lots of information on how to use BouncyCastle: #951 I ended up forgoing BouncyCastle because it increased binary size by 15 MB, which was too much for my use case. |
I read the issue and tried some approaches. I am using the -J-D argument poiting to a file containing "security.provider.3=org.bouncycastle.jce.provider.BouncyCastleProvider". But when i dont add the BC provider via Security.addProvider i get the error: no such provider BC. But when i add the BC provider via code, i get the error: Caused by: java.security.NoSuchAlgorithmException: no such algorithm: PKCS12 for provider BC. Any idea? Thank you! |
@luizurias1 , sharing my adventure to enable the BC algorithm in need here: |
As I mentioned in a related issue the Bouncy Castle, and all other providers, need to be registered and verified at Native Image build time. See: #2800 (comment). |
Hi, is it possible to add bouncy castle as a provider to compiled native image?
Even if i add "org.bouncycastle.jce.provider.BouncyCastleProvider" in java.security and use --enable-all-secyrity-services, apparentely it does not cause any effect and continues registering the same providers (I used the flag -H:+TraceSecurityServices).
I have to do something after add the provider in java.security? Or it is impossible to add another provider besides the ones already configured in java.security?
Thanks.
The text was updated successfully, but these errors were encountered: