• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service security, Invalid Key exception.

 
cnivas redy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic