ibm-messaging / mq-helm

Apache License 2.0
28 stars 34 forks source link

Error sending and getting messages #33

Closed andrescolodreroarion closed 1 year ago

andrescolodreroarion commented 1 year ago

I setup a new queue manager and install Client on my linux machine. TRyin to send a message i get this error:

Starting amqsphac secureapphelm Sample AMQSPHAC start MQCONNX ended with reason code 2393 Sample AMQSPHAC end

Does i need a cert on my machine?

callumpjackson commented 1 year ago

You are correct, you need the certificate to be available on the client machine. If you take a look at the script file here you will see how this can be done.

andrescolodreroarion commented 1 year ago

I can see that the certs are under genericResources/createcerts, but i have still same error.

I guess im missing something. On my linux machine, i have the env values: QM_CERT, QM_KEY and APP_CERT

When i run ./sendMessage.sh, Then i have: MQCCDTURL=/mnt/c/temp/mq-helm-main/samples/OpenShiftNativeHA/test/ccdt_generated.json MQSSLKEYR=/mnt/c/temp/mq-helm-main/samples/genericresources/createcerts/application

Access to console MQ manager works on: https://secureapphelm-ibm-mq-web-test-ibmmq1.apps.openshiftinternal.com then the ccdt looks like: { "channel": [ { "name": "MTLSQMCHL", "clientConnection": { "connection": [ { "host": "secureapphelm-ibm-mq-web-test-ibmmq1.apps.openshiftinternal.com", "port": 443 } ], "queueManager": "secureapphelm" }, "transmissionSecurity": { "cipherSpecification": "ANY_TLS12_OR_HIGHER", "certificateLabel": "aceclient" }, "type": "clientConnection" } ] }

./sendMessage.sh Starting amqsphac secureapphelm Sample AMQSPHAC start MQCONNX ended with reason code 2393 Sample AMQSPHAC end

callumpjackson commented 1 year ago

Can you have a look in the MQ client log file (normally /var/mqm/errors) as there should be some additional information. Also if the connectivity is reaching the Queue Manager there is normally something in the Queue Manager error log file as well. This should explain why you are seeing the error.

callumpjackson commented 1 year ago

As there has been no activity - closing.