SAP PI: Unable to encrypt SSL message: java.security.InvalidKeyException: Illegal key size

We are getting below error message after completing the support package stack for the SAP PI system.

Unable to encrypt SSL message: java.security.InvalidKeyException: Illegal key size

Solution

  1. Navigate to /usr/sap/[SID]/SYS/exe/jvm/[platform]/[patchstring]/sapjvm_[4,5,…]/jre/lib/security.
  2. Remove # from the parameter #crypto.policy = unlimited in the java.security file.
  3. Save and restart the AS Java.

Reference

  • 2881916 – Unable to encrypt SSL message: java.security.InvalidKeyException: Illegal key size
  • 1240081 – Java Cryptography Extension (JCE) Jurisdiction Policy Files
  • 2953290 – Unable to encrypt SSL message: java.security.InvalidKeyException: Illegal key size
  • 3184193 – SAP PI AN Adapter Error: “Unable to encrypt SSL message: java.security.InvalidKeyException: Illegal key size”

You May Also Like

Leave a Reply?