Reputation: 756
I'm trying to connect to 2 IBMMQ queues in one .Net (managed) application.
I have a problem because when I try to connect, one certificate is always selected even though I set WMQ_SSL_CLIENT_CERT_LABEL for each connection.
The certificates are loaded in the USER store.
Here is my configuration:
IConnectionFactory cf = factory.CreateConnectionFactory();
cf.SetStringProperty(XMSC.WMQ_HOST_NAME, Host);
cf.SetIntProperty(XMSC.WMQ_PORT, Post);
cf.SetStringProperty(XMSC.WMQ_CHANNEL, Channel);
cf.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, ConnectionMode);
cf.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, QueueManager);
cf.SetStringProperty(XMSC.WMQ_CCSID, CcsId);
cf.SetStringProperty(XMSC.WMQ_SSL_PEER_NAME, PeerName);
cf.SetStringProperty(XMSC.WMQ_SSL_CIPHER_SPEC, CipherSpec);
cf.SetStringProperty(XMSC.WMQ_SSL_CIPHER_SUITE, CipherSuite);
cf.SetStringProperty(XMSC.WMQ_SSL_KEY_REPOSITORY, SslKeyRepository);
cf.SetStringProperty(XMSC.WMQ_SSL_CLIENT_CERT_LABEL, ClientCertLabel);
Do you have an idea what I'm doing wrong or what needs to be set additionally?
Upvotes: 0
Views: 112