com.ibm.security.pkcsutil.PKCSException: Error encrypting contents
Error com.ibm.security.pkcsutil.PKCSException: Error encrypting contents
suggests that IBM® MQ Advanced Message Security has problems with accessing cryptographic algorithms.
If the following error is returned by IBM MQ Advanced Message Security:
DRQJP0103E The IBM MQ 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 you want to use is not specified in your current security policy, download the correct Java policy file, for your version of the product, from the following location :Fixes in the IBM Developer Kits.