我有一个 MQ 应用程序,需要使用 SSL 连接。我已经获得了一个要使用的密钥库和一个使用它的密码,但我不确定的是我需要去哪里设置密钥库密码的值?
我可以在 MQ DLL 中的几个位置看到密码设置,但我不想将其设置在错误的位置。所有其他 SSL 内容都位于 MQENVIRONMENT 下,并且那里有一个密码,但我似乎找不到任何可以确认这是正确位置的内容。
我需要为 SSL 密钥库的密码设置什么值?
(注意:我使用 MQ 版本 7 用 C# 编写此内容。)
I have an MQ application that I need to use SSL connections with. I have been given a keystore to use and a password to use it, but what I am unsure of is where I need to go to set the value of the keystore password?
There are a few places in the MQ DLL's that I can see a password setting, but I don't want to set it in the wrong place. All of the other SSL stuff has been under the MQENVIRONMENT and there is a password there, but I can't seem to find anything that confirms this as the correct place.
What is the value I need to set for my SSL keystore's password?
(NOTE: I am writing this in C# using MQ version 7.)
发布评论
评论(1)
.Net 类不使用 Java 密钥库,而是使用 WMQ kdb 格式密钥库。此文件格式包括一个“隐藏文件”,其中包含模糊的密码。将您的程序指向环境变量中的 kdb,如所讨论的 文档的此页面。 kdb实际上是几个具有相同前缀和不同后缀的文件。您在示例中看到的是,变量包含路径和 kdb 前缀,但没有后缀。
我猜下一个问题是“如何将我的 jks 转换为这种 kdb 格式?”为此,您必须安装 GSKit。它与 WMQ 客户端和 WMQ 服务器捆绑在一起,但根据安装的版本,路径略有不同。查看
C:\Program Files\IBM\gsk7
下的入门信息。有多种不同的用户界面,但您想要的是编译后的 gsk7cmd。从 jks 转换为 kdb 时,请务必指定 -stash 选项,以便程序可以找到密码。
The .Net classes do not use a Java keystore, but rather they use the WMQ kdb format keystore. This file format includes a "Stash file" which contains an obfuscated password. Point your program to the kdb in the environment variables as discussed on this page of the docs. The kdb is actually several files with the same prefix and different suffixes. What you see in the example is that the variable includes the path and the kdb prefix but no suffix.
I'm guessing the next question is "how do I get my jks into this kdb format?" To do this you must have GSKit installed. It is bundled with both WMQ Client and WMQ Server but depending on the version installed, the path differs slightly. Look under
C:\Program Files\IBM\gsk7
for starters. There are several different user interfaces but the one you want is the compiled gsk7cmd.When converting from jks to kdb, be sure to specify the -stash option so that the program can find the password.