I've had similar problems with using the JCE kit in tomcat, My crypto
classes run ok standalone, but fail with various errors when running in
tomcat.
I have the below error only on one developers machine every time, but not on
anyone elses system. 

-----Original Message-----
From: Leon Palermo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 9:05 AM
To: [EMAIL PROTECTED]; Brett M. Bergquist
Subject: Encryption with javax.crypto.*


Hello All,

I have some code which uses the javax.crypto.* package.  When I run the code
in a test outside of tomcat everything works fine.  When I try to run the
code through Tomcat on the same machine, I get the following error:

java.lang.SecurityException:  Cannot set up certs for trusted CAs
    at javax.crypto.b<clinit>([Dasho-Pro-V1.2-120198])
    at javax.crypto.SecretKeyFactory.getInstance([Dasho-Pro-V1.2-120198])
    ...

Has anyone ever used these classes with tomcat?  Does anyone have an idea
what might be happening here?  Has anyone used a different way to encrypt in
code run in tomcat?

Thanks in advance!

Leon Palermo

Reply via email to