Hello Morag,
Thank you for this confirmation.
I have read a lot of articles on the subject, old and new, including yours, and this was the conclusion I came to (although I didn't know the selection mechanism if several certificates are present)
@FrancoisBrandelik :
I also tried with a CCDT, which allows to specify a CERTLABEL. In this case, I have on the MQ Explorer side: "Unexpected error 2596 / AMQ4999", and on the Queue Manager side "AMQ9665E: SSL connection closed by remote end of channel '????'".
I also realised that using a CCDT for MQ Explorer removes the possibility to specify a user and a password for the connection. This is a bit of a shame.
Regards.
------------------------------
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr#IBMChampion
------------------------------
Original Message:
Sent: Tue August 16, 2022 12:38 AM
From: Morag Hughson
Subject: MQ Explorer and certificate selection
The MQ Explorer is a written in Java, and so uses a JKS certificate store. It is not possible to CHOOSE a certificate to send from a JKS store. This is why there is no certificate label configuration in MQ Explorer, and equally also why it does not select a certificate with a label based on your user name.
The Java SSL handshake code will select a certificate to send based on what the queue manager can validate - it learns which signers the queue manager has, and if it has a match, it will send the one that matches.
If you have multiple personal certificates in you JKS and more than one of them could be validated as a result of the signers your queue manager has, then I believe it is undefined which certificate will be sent. If you want to ensure exactly one (or none) then only have one personal certificate in your JKS.
I wish I could find a resource for you to read to explain this, but I have failed to find one. My memory is hazy, so if I have some of the exact technical details incorrect, I apologize in advance, but I hope that this at least gives you the gist of it.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Mon August 15, 2022 01:33 PM
From: Luc-Michel Demey
Subject: MQ Explorer and certificate selection
Hello,
I'm trying to find out how MQ Explorer selects the certificate to present in the case of a channel with TSL enabled.
I have not found a way to specify a CERLABEL in the MQ Explorer configuration.
My hope was that a certificate with a label like "ibmwebspheremq<user>" would be chosen, but apparently this is not the case.
If there is a valid certificate in the shop, MQ Explorer selects it and presents it to the Queue Manager, even if the label has no relation to the account used.
As I plan to filter via a CHLAUTH based rule on the certificate fields, this bothers me a bit.
Any idea how to specify a CERTLABEL in this case?
Thanks
------------------------------
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr
#IBMChampion
------------------------------