It's not a secret anymore!*
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web service security, Invalid Key exception.
 
Similar Threads
Exception calling web service over SSL since upgrade to SP4
java.security.InvalidKeyException: Illegal key size or default parameters error
AES256, cryptoPerms and Unlimited Cryptography
Exception in thread "main" java.security.InvalidKeyException:
Interoperability between WCF and WSIT