com.ibm.security.pkcsutil.PKCSException: Error encrypting contents
Error com.ibm.security.pkcsutil.PKCSException: Error encrypting contents suggests that Advanced Message Security has problems with accessing cryptographic algorithms.
If the following error is returned by Advanced Message Security:DRQJP0103E The Advanced Message Security Java interceptor failed to protect message. com.ibm.security.pkcsutil.PKCSException: Error encrypting contents (java.security.InvalidKeyException: Illegal key size or default parameters)verify if the JCE security policy in JAVA_HOME/lib/security/local_policy.jar/*.policy grants access to the signature algorithms used in MQ AMS policy.
If the signature algorithm we want to use is not specified in your current security policy, download the correct Java policy file, for the version of the product, from the following location :Fixes in the IBM Developer Kits.
Parent topic: Problems and solutions