Search This Blog

Wednesday, April 18, 2012

How To MQ SSL

You Must READ this : WebSphere MQ SSL channels on Windows

MQ SSL

SSL configuration of the Websphere MQ Java/JMS client

How to Set MQ ssl details programmatically (c++)?
My C++ code looks like this ( the MQ header from v7/6 version):

ImqChannel * pchannel = new ImqChannel;
pchannel->setChannelName("SSL_CHANNEL");
pchannel->setTransportType(MQXPT_TCP);
pchannel->setConnectionName ("myhostname(1414)");
pchannel->setSslCipherSpecification("TRIPLE_DES_SHA_US"); // its must be the same as the channel 

ImqQueueManager mgr;
mgr.setName("myQMgr");
mgr.setChannelReference(pchannel);
mgr.setKeyRepository("c:\\keys\\key");

To complete this post , and if you interesting with How to MQ SSL with CCDT files follow this post.

Yaniv Tzanany

No comments: