
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
- Navigate to /usr/sap/[SID]/SYS/exe/jvm/[platform]/[patchstring]/sapjvm_[4,5,…]/jre/lib/security.
- Remove # from the parameter #crypto.policy = unlimited in the java.security file.
- 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”



