Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SecurityException and trusted CAs

Status
Not open for further replies.

bthale

Programmer
Oct 31, 2001
108
US
I am getting the following error when my application tries to encrypt or decrypt. The error doesn't show up when using a unix server running IPlanet, but only when I run the app on my development machine using Tomcat. I have Tomcat setup with SSL, but I don't think it really matters. I get the error both ways. Can anyone help?

java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
at javax.crypto.Cipher.getInstance([DashoPro-V1.2-120198])
at com.sabre.res.base.security.Cryptography.encrypt(Cryptography.java:55)
 
I have no clue...but after doing a little research here is what I have...sorry if this does not help...

Do you have a certificate installed on the Web Server? Mostly likly on your production server (the Unix box), you may be using a thrid party vendor that provide this servers...like Verisign..

Another reason is that you did not config. the security manager of JVM. The file is located at JAVA_HOME\jre\lib\security

I also found this topic in Java's forum, these might have the solution you are looking for...here are some links:



 
I ahve both jdk 131 and 141 on my machine, and when using 131, you need to instal JCE as these threads indicated. That solved the problem. When I tried to run under 1.4 I get a new error when parsing

JAXPGenerator
The output format must have a '{ property!

don't know what this means
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top