Problem with JCE Bouncycasle
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   antonio_riccio
Posted On:   Wednesday, March 7, 2007 09:22 AM

I have been installed JCE of BouncyCastle and make use of JDK 1.5. I have set up the files java.secutity correctly, but I have the Exception error : Exception in thread "main" java.lang.ExceptionInInitializerError at javax.crypto.KeyGenerator.a(DashoA12275) at javax.crypto.KeyGenerator. (DashoA12275) at javax.crypto.KeyGenerator.getInstance(DashoA12275) at FileEncryptor.createKey(FileEncryptor.java:43) at FileEncryptor.main(FileEncryptor.java:30) Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.SunJCE_b. (DashoA12275) ... 5 more Caused by:    More>>

I have been installed JCE of BouncyCastle and
make use of JDK 1.5.

I have set up the files java.secutity correctly,

but I have the Exception error :
Exception in thread "main"
java.lang.ExceptionInInitializerError

at javax.crypto.KeyGenerator.a(DashoA12275)

at javax.crypto.KeyGenerator. (DashoA12275)

at javax.crypto.KeyGenerator.getInstance(DashoA12275)

at FileEncryptor.createKey(FileEncryptor.java:43)

at FileEncryptor.main(FileEncryptor.java:30)

Caused by:
java.lang.SecurityException: Cannot set up certs for trusted CAs

at javax.crypto.SunJCE_b. (DashoA12275)
... 5 more

Caused by: java.security.PrivilegedActionException:
java.security.InvalidKeyExce
ption:
Public key presented not for certificate signature

at java.security.AccessController.doPrivileged(Native Method)
... 6 more

Caused by: java.security.InvalidKeyException:
Public key presented not for certi
ficate signature
at
org.bouncycastle.jce.provider.X509CertificateObject.checkSignature(Un
known Source)
at
org.bouncycastle.jce.provider.X509CertificateObject.verify(Unknown So
urce)

at javax.crypto.SunJCE_b.d(DashoA12275)

at javax.crypto.SunJCE_b.c(DashoA12275)

at javax.crypto.SunJCE_r.run(DashoA12275)
... 7 more

please help me. Thanks in advantage.

   <<Less
About | Sitemap | Contact