MQWeb and SSL connections

SSL support in MQWeb is still experimental!

Starting from version 0.0.10 you can use to configure a connection to a queuemanager which uses a channel with SSL. In prior versions this was also possible but you needed to set some environment variables before starting MQWeb.

SSL can only be used when MQWeb runs in client mode. mq.web.mode must be set to client

SSL properties

The following SSL properties are availabe for use in

When mq.web.ssl.keyrepos is set, MQWeb assumes that SSL is always needed to connect to a queuemanager.

An Example

In this sample MQWeb will try to connect to a queuemanager named SEAGULL using an SSL channel.

SSL for queuemanager - Part 1

Logon to the server and check if SSLKEYR is correctly set on the queuemanager. For queuemanager SEAGULL, the value would be /var/mqm/qmgrs/SEAGULL/ssl/key.

Create a server connection channel:


In all samples, the password ssltest is used.

When there is no key database file, create it with the following command:

runmqakm -keydb -create -db "/var/mqm/qmgrs/SEAGULL/ssl/key.kdb" -pw ssltest -type cms -stash

Now you need to create a certificate for the queuemanager. It’s important that the label starts with ibmwebspheremq followed by the queuemanager name in lowercase. In this example this is ibmwebspheremqseagull.

runmqakm -cert -create -db "/var/mqm/qmgrs/SEAGULL/ssl/key.kdb" -pw ssltest -label ibmwebspheremqseagull -dn "CN=SEAGULL,OU=WMQ,O=ZUMUTA,C=BE"

Now extract the certificate and send the resulting file to the server where MQWeb runs.

runmqakm -cert -extract -db "/var/mqm/qmgrs/SEAGULL/ssl/key.kdb" -pw ssltest -label ibmwebspheremqseagull -target "/var/mqm/qmgrs/SEAGULL/ssl/seagull.arm" -format ascii

SSL for MQWeb - Part 1

Go to the server where MQWeb runs. You also need to create a key database file here:

runmqakm -keydb -create -db "/var/mqweb/ssl/key.kdb" -pw ssltest -type cms -stash

Create a certificate for the MQWeb user. It’s important that the label starts with ibmwebspheremq and is followed by the name of the user that tries to connect to the queuemanager.

runmqakm -cert -create -db "/var/mqweb/ssl/key.kdb" -pw ssltest -label ibmwebspheremqmqweb -dn "CN=SEAGULL,OU=WMQ,O=ZUMUTA,C=BE"

Extract this certificate and send the resulting file to the server where the queuemanager is running.

runmqakm -cert -extract -db "/var/mqweb/ssl/key.kdb" -pw ssltest -label ibmwebspheremqmqweb -target "/var/mqweb/ssl/mqweb.arm" -format ascii

Import the certificate of the queuemanager into the key database file

runmqckm -cert -add -db "/var/mqweb/ssl/key.kdb" -pw ssltest -label ibmwebspheremqseagull -file seagull.arm

SSL for queuemanager - Part 2

Import the certificate for the MQWeb user into the key database file of the queuemanager:

runmqckm -cert -add -db "/var/mqm/qmgrs/SEAGULL/ssl/key.kdb" -pw ssltest -label ibmwebspheremqmqweb -file mqweb.arm

Restart queuemanager SEAGULL or use REFRESH SECURITY TYPE(SSL)

SSL for MQWeb - Part 2

Check if mq.web.mode is set to client in Add the following properties:


and use CL.SSL as channel for queuemanager SEAGULL:

If all goes well MQWeb can now connect with the SEAGULL using SSL

If you receive any 2035 (MQRC_NOT_AUTHORIZED) messages, check the security settings on the queuemanager.