Skip to content

Instantly share code, notes, and snippets.

View timmw's full-sized avatar

Tim Miller-Williams timmw

View GitHub Profile
### Keybase proof
I hereby claim:
* I am timmw on github.
* I am timmw (https://keybase.io/timmw) on keybase.
* I have a public key whose fingerprint is 95EF 824F 6694 C729 15F7 6F59 F117 525F 858B A314
To claim this, I am signing this object:
Hello! I'm attempting to get the BouncyCastle JCA provider to work with native-image and not having much luck. Can anyone tell me if I should be registering BouncyCastle via the <java-home>/lib/security/java.security file? When I do, I get errors like
`com.oracle.svm.core.util.UserError$UserException: Classes that should be initialized at run time got initialized during image building:
org.bouncycastle.jce.provider.BouncyCastleProvider was unintentionally initialized at build time. org.bouncycastle.jce.provider.BouncyCastleProvider caused initialization of this class with the following trace:
at org.bouncycastle.jce.provider.BouncyCastleProvider.<clinit>(BouncyCastleProvider.java:61)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Unknown Source)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java