Verifying Queue Managers SSL Configuration with MQCERTCK.Tweet
MQCERTCK is the updated version of the MH03 SupportPac that
is now included in MQ as of version 8.0.0.4. MQCERTCK is a tool to look
for common mistakes in your Queue Manager’s SSL configuration and
provides recommendations for resolving problems. It will check:
It is available on all Distributed platforms and the MQ
Appliance but is not available currently on z/OS or IBMi, additionally
the messages written out by MQCERTCK are available in English only.
Usage
In order to use the new MQCERTCK tool execute “mqcertck”
with its required parameters using a command line which has been
configured with the MQ v8.0.0.4 environment. MQCERTCK takes the
following parameters:
mqcertck
Where:
Since no additional software, such as user-applications,
can be run on the IBM MQ Appliance, the –clientkeyr, -clientchannel,
-clientusername, -clientlabel and –clientport parameters and associated
functionality are not available when running MQCERTCK on the MQ
Appliance.
Example Usage
Alice has just finished setting up her Queue Manager QM1 to
allow SSL Connections from clients connecting to its SVRCONN channel.
Alice is using the new multiple certificates feature and so both her
Queue Manager and Channel have a Certificate label specified in their
CERTLABL attributes. While creating the channel Alice has made a mistake
in her Channel’s CERTLABL attribute and so when a client attempts to
connect the Queue Manager will return a 2393 MQRC
mqcertck QM1
MQCERTCK shows the error message:
Which prompts Alice to check her Channel Definition for
the CLIENT.CONNECTION channel, here she is able to see the error she
made and quickly connect it before running MQCERTCK again to verify the
problem has been resolved.
Verifying Client Connections
Since no additional software, such as user-applications,
can be run on the IBM MQ Appliance, the following MQCERTCK feature is
not available on the IBM MQ Appliance
MQCERTCK has the ability to verify client key repositories
as well as the Queue Manager’s SSL Configuration. To do this MQCERTCK
needs to be able to access the Client’s key repository from the machine
running the Queue Manager. When running MQCERTCK if you supply the
–clientkeyr parameter with the location of the client key repository
(excluding the extension) MQCERTCK will check this key repository
against the Queue Manager. If you know which channel the client will be
connecting to the Queue Manager via you can specify this with the
–clientchannel flag. If the client will be using mutual authentication
to connect to the Queue Manager you can use the –clientusername or
–clientlabel parameter to tell MQCERTCK which certificate to use in the
client key repository. If you are using the default certificate and not
supplying a certificate label to the client application then you can use
–clientusername and the username which will run the application, during
MQCERTCK’s operation it will generate the certificate label “ibm
In order to fully verify the client key repository MQCERTCK
will create a dummy connection using GSKit. To do this it needs to have
a port available that it can bind to during its client tests. The
default port used is 5857 however if this is already in use then you can
specify a different port to be used during the client tests. Although
MQCERTCK will bind to a port, no external communications will be used by
MQCERTCK and all tests will be performed locally.
|
This document is intended to help diagnose WebSphere MQ V7 Java™ or JMS SSL setup errors. It lists most of the common configuration errors that can cause an SSL connection from a Java/JMS client to a queue manager to fail, and gives the course of action to resolve the problem. In each case the error can be diagnosed by a combination of the error seen in the client log - either a console output, trace file or SystemOut.log file - and the queue manager's error logs. The document is quite long, so the easiest way to find the potential error is to search for one of the errors seen in this list, then filter this list using the error from the opposite end of the channel. All cases here assume that 2-way authentication is being attempted (SSLCAUTH set to REQUIRED on the queue manager's SVRCONN channel). This is the default, and the errors are very similar for 1-way authentication (SSLCAUTH set to OPTIONAL). Symptom Instructions on collecting documentation...
Comments
Post a Comment