wood burning stoves 2.0*
The moose likes Security and the fly likes using bouncy castle jce provider?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "using bouncy castle jce provider??" Watch "using bouncy castle jce provider??" New topic
Author

using bouncy castle jce provider??

hugo anderson
Greenhorn

Joined: May 30, 2003
Posts: 2
Hello All
I am new to java.
I want to use bouncy castle jce provider.
I have copied the bcprov-jdk14-118.jar file in home\lib\ext and also updated the java.security file by adding
security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
I am using jdk1.4.0_01 in win2k.
While running it says:
Exception in thread "main" java.lang.NoClassDefFoundError: Filename .....
plz help
thanks in advance
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Did you put it in lib/ext of the JRE? And I assume you are aware that JDK 1.4.1 ships with a fairly complete JCE provider.
- Peter
hugo anderson
Greenhorn

Joined: May 30, 2003
Posts: 2
Thanks peter for replying but I have already tried what you told.
I even tried by putting the jar file in both (jsdk\jre\lib\ext and also in programs\java\jre\lib\ext) and is still not working.
Plz help.
Also I am aware that SUNJce is quite sufficient but I want to use BC for generating self signed certificate...is there some other way without using keytool?
Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
I know you posted this a while ago, but if you're still interested... You can do all this (and more!) programmatically. I have some sample code below:

Now if you also want to verify a signed jar file (say one that you signed with that certificate from before), then my code below will help with that. Hope this helps someone!
 
Consider Paul's rocket mass heater.
 
subject: using bouncy castle jce provider??
 
Similar Threads
Bouncy Castle encryption examples and tutorials
Is cast5 128 supported by default sun JCE provider?
JCE: RC4
KeyGenerator using JCE
how to solve exception java.lang.SecurityException: JCE cannot authenticate the provider BC