You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用runmqdnm命令通过SSL连接IBM MQ失败的技术咨询

问题:使用runmqdnm命令通过SSL连接IBM MQ失败,非SSL及MQ对象方式可正常连接

我们在.NET代码中通过runmqdnm命令使用SSL连接IBM MQ时失败,但不使用SSL时能正常连接,通过队列管理器属性方式也能成功连接。

相关代码如下:

string command = $"runmqdnm -m {queueManager} -q {queueName} -s {yes} -a {assembly} -c {clss} ";

Environment.SetEnvironmentVariable("MQSERVER", serverVariable); // 通过环境变量设置MQ服务器参数
// 密钥库通过环境变量MQSSLKEYR设置为:E:\\Certs\\mq\\key

我们未找到在runmqdnm命令中传递Cipher Spec和证书标签(CertificateLabel)的选项,但使用MQ对象方式时,可通过以下代码实现对应配置:

properties.Add(MQC.SSL_CIPHER_SPEC_PROPERTY, cipher);
properties.Add(MQC.CERT_LABEL_PROPERTY, certLabel);

内容的提问来源于stack exchange,提问作者jagadeesh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 13:03:18