|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQRC_JSSE_ERROR |
« View previous topic :: View next topic » |
Author |
Message
|
Jeroen20 |
Posted: Wed Sep 01, 2021 1:54 am Post subject: MQRC_JSSE_ERROR |
|
|
Newbie
Joined: 01 Sep 2021 Posts: 1
|
Code: |
mqht.put(CMQC.CHANNEL_PROPERTY, mqConfiguration.getChannel());
mqht.put(CMQC.HOST_NAME_PROPERTY, mqConfiguration.getHost());
mqht.put(CMQC.PORT_PROPERTY, mqConfiguration.getPort());
mqht.put(CMQC.USER_ID_PROPERTY, mqConfiguration.getUsername());
mqht.put(CMQC.PASSWORD_PROPERTY, mqConfiguration.getPassword());
|
Code: |
qMgr = new MQQueueManager(queueName, mqht);
System.out.println("Successfully connected to " + qMgr.getName());
|
I keep getting this error:
Code: |
MQJE001: Completion Code '2', Reason '2397'. |
Am I missing any properties? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Sep 01, 2021 4:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
What about keystore, truststore (on command line) and ciphersuite ? or a CCDT URL ??  _________________ MQ & Broker admin |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Sep 01, 2021 10:32 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hummm. That looks like a piece of one of my published sample Java/MQ programs.
If you want to use SSL/TLS then you need several more properties. Have a look at MyMQ.java file from Universal File Mover (UFM) open source project.
i.e.
Code: |
if (mqo.cipherSuiteName != null)
mqht.put(CMQC.SSL_CIPHER_SUITE_PROPERTY, mqo.cipherSuiteName);
if (mqo.distinguishedName != null)
mqht.put(CMQC.SSL_PEER_NAME_PROPERTY, mqo.distinguishedName);
if (mqo.trustedStore != null)
System.setProperty("javax.net.ssl.trustStore", mqo.trustedStore);
if (mqo.trustedStorePasswd != null)
System.setProperty("javax.net.ssl.trustStorePassword", mqo.trustedStorePasswd);
if (mqo.keyStore != null)
System.setProperty("javax.net.ssl.keyStore", mqo.keyStore);
if (mqo.keyStorePasswd != null)
System.setProperty("javax.net.ssl.keyStorePassword", mqo.keyStorePasswd); |
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|