Exceptions while integrating : java.security.InvalidKeyException: Illegal key size

200 views Asked by At

I am integrating payment gateway integration and I do have bouncy castle jar deployed with an entry in java.security file security.provider.11=org.bouncycastle.jce.provider.BouncyCastleProvider

At run time, I do have the below mentioned exceptions; how can I resolve the issue? java version is 1.7.0 (IBM J9 VM)

java.security.InvalidKeyException: Illegal key size
    at javax.crypto.Cipher.a(Unknown Source)
    at javax.crypto.Cipher.a(Unknown Source)
    at javax.crypto.Cipher.a(Unknown Source)
    at javax.crypto.Cipher.init(Unknown Source)
    at javax.crypto.Cipher.init(Unknown Source)
1

There are 1 answers

0
BigMike On BEST ANSWER

You may try the unlimited strength key policy files here