Prior to using queue-based security, WebSphere MQ Everyplace owned authenticatable entities must have credentials. This is achieved by completing the correct configuration so that auto-registration of queue managers is triggered. This requires the following steps:
Prior to using message-level security to protect messages using MQeMTrustAttribute, the application must use private registry services to ensure that the initiating and recipient entities have credentials. This requires the following steps:
/* SIMPLE MQePrivateRegistry FRAGMENT */ MQePrivateRegistryHndl preg; MQERETURN rc; MQeExceptBlock exceptBlock; /* setup PrivateRegistry parameters */ rc = mqePrivateRegistry_new(&Block, &preg); rc = mqePrivateRegistry_activate( preg, &Block, MQeString("Bruce"), /* entity name */ MQeString(".//MQeNode_PrivateRegistry"), /* directory root */ MQeString("11111111"), /* private reg access PIN */ MQeString("It_is_a_secret"), /* private credential keyseed */ MQeString("12345678"), /* on-time-use Cert Req PIN */ MQeString("9.20.X.YYY:8082")); /* addr and port MiniCertSvr */