I\'m trying to use bouncycastle to encrypt a file using a public key. I\'ve registered the provider programatically:
Security.addProvider(new BouncyCastlePro
You have a BouncyCastle Security provider installation problem, you need to either
$JAVA_HOME/jre/lib/security/java.security file as a provider (be sure that you add it to the JRE you use when running, eg. if you have multiple JRE's/JDK's installed)eg.
security.provider.2=org.bouncycastle.jce.provider.BouncyCastleProvider
(and renumber the security providers below it - don't put it as the highest priority provider).
$JAVA_HOME/jre/lib/security/java.policy should be "unlimited" (you can probably download an unlimited policy file from the Java homepage).