java - SSL not working with IBM MQ 8 client jars -


ssl works ibm mq 6 client jars same code doesn't work ibm 8 jars.did faced issue ibm 8 client jars.

code:

            com.ibm.mq.mqqueuemanager qmrequest = null;             com.ibm.mq.mqqueue qrequest = null;              com.ibm.mq.mqmessage reqmsg = new com.ibm.mq.mqmessage();             reqmsg.writestring(new string("first mq ssl message test"));             reqmsg.messageid = "1".getbytes();             reqmsg.correlationid = "2".getbytes();                 system.setproperty("javax.net.ssl.truststore", "d:/keystore/testks.jks");             system.setproperty("javax.net.ssl.truststorepassword", "12345678");             system.setproperty("javax.net.ssl.keystore", "d:/keystore/testks.jks");              system.setproperty("javax.net.ssl.keystorepassword", "12345678");              hashtable<string,object> propmap = new hashtable<string,object>();              propmap.put(mqconstants.host_name_property, "localhost");             propmap.put(mqconstants.port_property,  1415);             propmap.put(mqconstants.channel_property, "testg");             propmap.put(mqconstants.ssl_peer_name_property, "cn=ibmwebspheremqtestqu");              string qmnamerequest = "testqu";             string qnamerequest = "testqq";             propmap.put(mqconstants.ssl_cipher_suite_property,  "tls_rsa_with_aes_128_cbc_sha");             qmrequest = new com.ibm.mq.mqqueuemanager(qmnamerequest,propmap);              int reqqueueopt = mqconstants.mqoo_output | mqconstants.mqoo_set_identity_context;             qrequest = qmrequest.accessqueue(qnamerequest, reqqueueopt);             reqmsg.messagetype = mqconstants.mqmt_datagram;             com.ibm.mq.mqputmessageoptions reqmsgopt = new com.ibm.mq.mqputmessageoptions();             reqmsgopt.options = mqconstants.mqpmo_set_identity_context;              qrequest.put(reqmsg, reqmsgopt);             qrequest.close();             qmrequest.disconnect(); 

the above code works ibm jdks oracle jdk fails , throws exception related ssl.

did read this: http://www-01.ibm.com/support/docview.wss?uid=swg1iv66840

did set jvm environment variable "-dcom.ibm.mq.cfg.useibmciphermappings=false" noted in ibm support doc?


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -