problem with loading Bouncy Castle

2011-11-08 Thread Jan Vávra
Hello, I have a problem with loading bouncy castle. My code snippet is: int position = Security.addProvider(new BouncyCastleProvider()); KeyStore store = KeyStore.getInstance(PKCS12, BC); In the application log I have message that BouncyCastleProvider is already loaded (position== -1

Re: problem with loading Bouncy Castle

2011-11-08 Thread Pid
On 08/11/2011 08:47, Jan Vávra wrote: Hello, I have a problem with loading bouncy castle. My code snippet is: int position = Security.addProvider(new BouncyCastleProvider()); KeyStore store = KeyStore.getInstance(PKCS12, BC); In the application log I have message

Re: problem with loading Bouncy Castle

2011-11-08 Thread Marvin Addison
Crypto providers need to be installed into the JRE extension directory (e.g. $JRE_HOME/lib/ext) and an entry must be added to $JRE_HOME/lib/security/java.security to install the provider. For example: security.provider.5=org.bouncycastle.jce.provider.BouncyCastleProvider Note the 5 above; each