MQ

 View Only

 dspmqcert syntax

Luc-Michel Demey's profile image
Luc-Michel Demey IBM Champion posted Mon March 24, 2025 05:46 PM

Hello,

The KC state :
"Run without parameters, the program iterates through the available queue managers and reads the keystore in the default location. If present, then the keystore is queried using the stash file credentials, if available."

I have a 9.4.2 installation, with some Queue Managers. 
One of it (DC103) has his .kdb keystore on the default location (J:\MQ_data\qmgrs\DC103\ssl\dc101_2024)

When I try :

dspmqcert

I got a blank line as the answer.
When I try :

dspmqcert -m DC103

I got the error message :

No queue manager found matching the 'DC103' model.

I have the same behavior on a Windows 11 installation as on a Linux installation.

Am I missing something?

Thanks.

Morag Hughson's profile image
Morag Hughson IBM Champion

This J:\MQ_data\qmgrs\DC103\ssl\dc101_2024 is not the default location, this J:\MQ_data\qmgrs\DC103\ssl\key is. I suspect that is your problem.

Cheers,
Morag

Luc-Michel Demey's profile image
Luc-Michel Demey IBM Champion

Hello Morag, 
Thanks for your answer.
For me, when I read "default location", I understand "default path".
I hadn't realized that "default location" meant "default path/key".
Indeed, by renaming my keystore to "key.xx", it works much better.

The problem with this command is that if the keystore doesn't have the default name and path, dspmqcert doesn't work, even though this name and path can be read in the Queue Manager's SSLKEYR parameter.
Normally, with just the name of the Queue Manager, the command should be able to locate the keystore.