how to solve exception java.lang.SecurityException: JCE cannot authenticate
843811Feb 24 2009 — edited Apr 15 2009Hello All,
I have developed an application in which I have used the Cryptography with the help of BountyCastle.jar.
I also had a line Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
Everything works fine when I execute the program from Eclipse.
But when I made executable jar for my application which internally has BouncyCastle jar and execute the jar,
I am getting exception
JCE cannot authenticate the provider BC
java.lang.SecurityException: JCE cannot authenticate the provider BC
at javax.crypto.Cipher.getInstance(DashoA13*..)
Can anybody please guide me how can I solve this problem?
Thanks in Advance,
Jenish