ibm-messaging / mq-golang

Calling IBM MQ from Go applications
Apache License 2.0
168 stars 60 forks source link

What types of key repositories work with this library? #196

Closed irl-segfault closed 1 year ago

irl-segfault commented 1 year ago

Version 9.2, trying to get mutual TLS set up. I have a .p12 file containing my private key, my public key, and the CA that signed both my public key (the client) and the server MQ's public key. I am currently trying to convert that .p12 file into a .kdb or other type of file that the MQ Golang client can read in and understand. Have been having difficulty setting this up despite searching for similar issues and reading documentation on the .kdb setup. Any pointers would be greatly appreciated. Thanks!

irl-segfault commented 1 year ago

Figured it out. For anyone running into the issue of convering a .p12 file into a kdb file, run the following

runmqakm -keydb -create -db client.kdb -pw password -stash

runmqakm -cert -import -target client.kdb -target_stashed -file ./yourp12