Error with RSA: java.lang.ExceptionInInitializerError

Hello

Im still fighting with RSA...

I have already edited java.security file and i've added BouncyCastle the first one.

When I try to get an instance of RSA i get this exception:

java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs: java.security.InvalidKeyException: Public key presented not for certificate signature

Ive hear something about signed jar but i dont have ideas clear

Clues? Help? Please...

Pablo

[512 byte] By [pablogpa] at [2007-9-19]
# 1
did you place provider jar in jre/lib/ext directory ?
akulinska at 2007-7-8 > top of java,Security,Cryptography...
# 2
Yes, I've already placed provider jar, from BouncyCastle, into jre/lib/ext.I can add the provider and also can list it, so it is correctly installed but i can't decrypt.Help!!
pablogpa at 2007-7-8 > top of java,Security,Cryptography...
# 3
I tried using cryptix instead of bouncy castle for RSA. I works fine. I was able encrypt/decrypt files. Store public/private keys in files and read from them too.Try using cryptix. www.cryptix.org
ydamlea at 2007-7-8 > top of java,Security,Cryptography...
# 4

> I tried using cryptix instead of bouncy castle for

> RSA. I works fine. I was able encrypt/decrypt files.

> Store public/private keys in files and read from them

> too.

> Try using cryptix. www.cryptix.org

Really? In my experience, the BouncyCastle RSA cipher implementation was the best. Cryptix code have some problems.

euxxa at 2007-7-8 > top of java,Security,Cryptography...