Setting up SSL for IBM MQ QM is a long and tedious process. Below are the overview of the steps need to be followed:
All supported releases of Service Virtualization.
The .kdb file is the keystore database file. Can compare this to a JKS file.
The .sth file is the Stash file. This file MUST exist in the same folder where .kdb file exists and should have the same name.
THESE ARE UNWRITTEN RULES THAT IBM DIDNT DOCUMENT WELL
Need to import the SSL Server certificate (Public and Private) as well as issuing CA's inter and root certificates in this step.
In the same 'IBM Key Management' dialog box. Choose the certificate type and use the import button to import the .p12 certificate of the SSL server cert that was obtained in Step 1
Will be prompted for a password to open the P12 certificate. Enter the password and the SSL Server cert would be imported to the KEY DB.
Once entering the correct password, would be prompted to modify the LABEL of the certificate. This is similar to ALIAS in JKS file.
Make a note of the 'Label' with which this certificate is stored in KDB.
After this, need to import the 'Signer Certificates'. These are basically INTER and ROOT ca Public certs. Import INTER first followed by ROOT.
Will be prompted for a Label. Enter something meaningful. (Remember ALIAS in JKS )
Step 4 - Configure QM to use the Key DB file created in Step 2
Once clicking Finish, the new QM 'SSLQMDemo' is created along with a 'Server connection channel'
Locate the newly created QM in left NAV tree and then right click → Properties
Choose 'SSL' section on the left side and make 2 important changes on the right side as shown below.
Provide the complete path to the KDB file created in Step 2.
DON'T ENTER THE FILE EXTENSION HERE. THIS ONE MISSTEP CAN CAUSE UNTOLD MISERY.
Step 5 - Create and Configure "Server Connection" channel's SSL property with 'SSL Cipher Spec'
Step 6 - Start the Queue Manager
For any errors in Connection verification from Workstation, refer to the files in this location: C:\ProgramData\IBM\MQ\qmgrs\SSLQMDemo\errors
Troubleshooting
Check for more information in IBM Support on "Troubleshooting IBM MQ Java/JMS TLS SSL Configurations"