ibm-mqpymqi

Pymqi - Connecting to IBM mq with SSL


I am able to connect to IBM mq through Pymqi using installed MQ client v9 on my Linux machine. There is requirement of connecting through SSL. How should I create key repository for two way TLS(mTLS)?


Solution

  • I have configured mutual tls between a python application using PyMQI backed with the IBM MQ toolkit for MacOS (9.1.5.0) and a queue manager running on a Raspberry Pi (9.2.0.0).

    I have used self-signed certificates to make it easier to illustrate an end-to-end example of a TLS configuration with MQ. This would not normally be used in a production environment; your MQ administrator will typically provide any certificates that you might need to use which are often issued by a certificate authority. Where this is the case you can skip the certificate creation steps below.

    Here are the steps I took:

    Initial server and Python code setup

    General Config

    Queue Manager config

    Client Config

    Exchange public keys

    Configure TLS on the Queue Manager

    TLS enabled the MQ PyMQI application

    Alternate configuration to use environment variables to reference label and keystore