0

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)
4
  • 1
    You may try the unlimited strength key policy files oracle.com/it/java/technologies/javase-jce8-downloads.html get the one for your Java version. Commented Dec 9, 2020 at 7:58
  • 1
    Yes, IBMJava does have different policy files than Oracle/Open; it also has different cryptoproviders. The last time I managed to find useful files on (one of) the IBM website(s) was about 10 years ago, so I can't even suggest where to look :-( Commented Dec 9, 2020 at 11:00
  • @BigMike I have downloaded IBM version of files; it has worked perfectly. Thanks a lot. Please post the answer, will happy to accept and upvote. Commented Dec 9, 2020 at 11:05
  • @BigMike Below is the URL ibm.com/developerworks/java/jdk/security/index.html Commented Dec 9, 2020 at 11:22

1 Answer 1

1

You may try the unlimited strength key policy files here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.