This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes web service security, Invalid Key exception. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "web service security, Invalid Key exception. " Watch "web service security, Invalid Key exception. " New topic
Author

web service security, Invalid Key exception.

cnivas redy
Greenhorn

Joined: Apr 19, 2008
Posts: 17
we are getting java.security.InvalidKeyException: Illegal key size or default parameters exception while decrypting a data file.
we have IBM web sphere 6.1. and in the websphere Java/jre/lib/Security I have the two jars. local_policy.jar and US_export_policy.jar but Still I'm getting this exception.

Caused by:
java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(Unknown Source)
at javax.crypto.Cipher.init(Unknown Source)
at javax.crypto.Cipher.init(Unknown Source)
at com.edifecs.shared.filestore.ECCrypto.getDecryptionStream(ClientFileStore.java:539)

I tried the same web service on Tomcat web server in the begining I got the same error but after copying these SDK JCE jars to lib the exception is gone. I tried to download these from IBM web site but it is asking for IBM ID. does any body know how to get these JCE jars for IBM web sphere.? and why I'm getting this exception even after having the Jar in the jre/lib
thanks in advance
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: web service security, Invalid Key exception.
 
Similar Threads
Exception in thread "main" java.security.InvalidKeyException:
Interoperability between WCF and WSIT
java.security.InvalidKeyException: Illegal key size or default parameters error
Exception calling web service over SSL since upgrade to SP4
AES256, cryptoPerms and Unlimited Cryptography