• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using bouncy castle jce provider??

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic