There are many moving parts for AMS, and it is easy to get it wrong. The error messages produced often do not describe the problem.
This is a work in progress. If you have other problems, please let me know. I am expecting people to search with their symptoms, rather than read this document.
One day I’ll produce a list
- reason 03353026; Failed to process object ‘pkcs7 enveloped data message.’; see ….
Bad key definition. User’s certificate has the wrong certificate type (such as Elliptic)
CSQ0215E %MQPA CSQ0CPUT Message protection failed, return code 00000008, reason 03353026
CSQ0217E %MQPA CSQ0CPUT Failed to process object ‘pkcs7 enveloped data message.’
From the GSK trace
ERROR gsk_make_enveloped_data_content_extended(): keyUsage does not allow key encipherment
EXIT gsk_make_enveloped_data_content_extended(): <— Exit status 0x03353026 (53817382)
The key does not have Keyusage(dataencryption).
A key defined as NISTECC does not support data encryption. You have to use RSA or ICSF.
User’s certificate expired
During MQPUT
CSQ0215E %MQPA CSQ0CPUT Message protection failed, return code 00000008, reason 03353022
CSQ0217E %MQPA CSQ0CPUT Failed to process object ‘public key certificate’
During MQGET
The certificate in the message has expired, and the certificate in the keyring has expired
CSQ0216E %MQPA CSQ0CGET Message unprotection failed, return code 00000008, reason 03353033
CSQ0217E %MQPA CSQ0CGET Failed to process object ‘pkcs7 confidentiality msg’
CSQ0209E %MQPA CSQ0CMDQ Message for AMS sent to error queue, MQRC=2063 (MQRC_SECURITY_ERROR)
Certificate Authority has expired
User’s certificate is not trusted
CSQ0214E %MQPA CSQ0COPN Message protection initialization failed, return code 12, reason 0335300E
CSQ0217E %MQPA CSQ0COPN Failed to process object ‘DEFAULT key in keyring COLIN/drq.ams.keyring’
Note: After changing a certificate to TRUST I used
RACDCERT ID(COLIN ) ALTER (LABEL('AMS')) NOTRUST
SETROPTS RACLIST(DIGTCERT,DIGTRING ) refresh
SETROPTS RACLIST(RDATALIB) refresh
and
f mqpaamsm,refresh
QM is missing a CA certificate
CSQ0216E %MQPA CSQ0CGET Message unprotection failed, return code 00000008, reason 03353024
CSQ0217E %MQPA CSQ0CGET Failed to process object ‘signer’s certificate’
CSQ0209E %MQPA CSQ0CMDQ Message for AMSI sent to error queue, MQRC=2063 (MQRC_SECURITY_ERROR)
RACDCERT ID(STCMQ ) CONNECT(RING(drq.ams.keyring ) -
CERTAUTH -
LABEL('NEW-CA') )
CSQ0215E %MQPA CSQ0CPUT Message protection failed, return code 00000008, reason 03353024
CSQ0217E %MQPA CSQ0CPUT Failed to process object ‘public key certificate’.
During encryption, the CA for a recipient is not in the queue manager’s keyring.
QM is missing a recipient’s certificate
CSQ0214E %MQPA CSQ0COPN Message protection initialization failed, return code 12, reason 0335300E
CSQ0217E %MQPA CSQ0COPN Failed to process object ‘recipient public key certificate in recipient keyring’
Action:
Either add the certificate to the queue manager’s keyring, (and issue the f xxxxamsm,refresh command), or remove the DN from the recipient list.
Getters userid does not have access to the private certificate in the keyring
CSQ0214E %MQPA CSQ0COPN Message protection initialization failed, return code 12, reason 03353033
CSQ0217E %MQPA CSQ0COPN Failed to process object ‘not available’
Check the keyring for the user has a valid entry.
The userid is trying to get a message, but the list of recipients does not include the user’s DN.
Getter does not have a certificate to decypt a message
CSQ0214E %MQPA CSQ0COPN Message protection initialization failed, return code 12, reason 03353033
CSQ0217E %MQPA CSQ0COPN Failed to process object ‘not available’
The user is trying to get a message, but is not in the list of recipients
CSQ0214E %MQPA CSQ0COPN Message protection initialization failed, return code 12, reason 03353033
CSQ0217E %MQPA CSQ0COPN Failed to process object ‘not available’
The getter does not have the CA for its certificate in its keyring (to validate the incoming message)
CSQ0216E %MQPA CSQ0CGET Message unprotection failed, return code 00000008, reason 03353033
CSQ0217E %MQPA CSQ0CGET Failed to process object 'pkcs7 confidentiality msg'
CSQ0209E %MQPA CSQ0CMDQ Message for AMS sent to error queue, MQRC=2063 (MQRC_SECURITY_ERROR)
One thought on “What can go wrong when using AMS – how long have you got?”