Websphere MQ:如何在受管客户端中使用SSL

问题描述

我正在使用IBMMQDotnetClient(v9.2.0)连接Webphere MQ(v9.1.0.3)。该服务器需要SSL才能连接。我已经尝试过,但是遇到2538错误。我已经在.Net FW中开发了一个测试工具(对于.Net FW使用MQ库),并使用Unmanaged Mode并将其成功连接到该服务器。 我从IBM文档中找到了以下信息:

来自:https://www.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q029470_.htm

When WebSphere® MQ classes for .NET are used as a managed client,there are a number of differences from a standard WebSphere MQ MQI
client.
The following features are not available to a managed client: 
- Channel compression  
- SSL support  
- Channel exit chaining

->这意味着Managed Client不支持SSL(?)

来自:https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.1.0/com.ibm.mq.dev.doc/q132490_.htm

IBM MQ classes for .NET Standard only support `Managed Client`

->这意味着IBMMQDotnetClient支持Managed Client

摘要:对于IBMMQDotnetClient,我只能使用Managed Client,而Managed Client不支持SSL。我对么?如何将IBMMQDotnetClient与SSL配合使用?

这是我的代码,它引发错误2538:MQRC_HOST_NOT_AVAILABLE:

var sslQueueProperties = new Hashtable
                {
                    [MQC.HOST_NAME_PROPERTY] = mqHostName,[MQC.PORT_PROPERTY] = mqPort,[MQC.CHANNEL_PROPERTY] = mqChannelName,[MQC.USER_ID_PROPERTY] = mqUserName,[MQC.PASSWORD_PROPERTY] = mqPassword,[MQC.SSL_CERT_STORE_PROPERTY] = certStore,[MQC.SSL_CIPHER_SPEC_PROPERTY] = cipherSpecProperty,[MQC.TRANSPORT_PROPERTY] = MQC.TRANSPORT_MQSERIES_MANAGED
                };
                
_mQQueueManager = new MQQueueManager(mqQueueManagerName,sslQueueProperties);

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)