SSL Connection in Managed MQ .NET (MQ v8)
SSL Connection in Managed MQ .NET (MQ v8)
1. Set the Key Database file in the SSLKEYR parameter of the Queue Manager.
ALTER QMGR SSLKEYR('<key database>')
1. Import the obtained client side SSL Certificate to the the Windows Certificate Store. (Under
COMPUTER/USER account).
- Click on the "SSL Configuration Settings". You can double-click on the "SSL Cipher Suite
Order" to set the desired cipher spec for the MQ channel.
- Select "Enabled" and give the name of the cipher spec you want to use under the "SSL
Cipher Suites" box. Restart the system for the changes to take effect.
With this your Server and Client side configuration is done.
To run a Sample program say SimplePut.cs (inside C:\Program Files\IBM\WebSphere MQ\Tools\dotnet\samples\
cs\base\bin) pass the arguments as follows:
C:\Program Files\IBM\WebSphere MQ\Tools\dotnet\samples\cs\base\bin\SimplePut.exe -q Q01 -k *SYSTEM -s
TLS_RSA_WITH_AES_128_CBC_SHA -p 2000 -n 2
(If your Key Repository in under User Account you can give *USER for the '-k' parameter.). The output looks like
below: