Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using bouncy castle jce provider??

 
hugo anderson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic