ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexGeneral IBM MQ SupportMQRC_KEY REpository_error

Post new topicReply to topic
MQRC_KEY REpository_error View previous topic :: View next topic
Author Message
roopashree
PostPosted: Tue Mar 23, 2021 10:44 pm Post subject: MQRC_KEY REpository_error Reply with quote

Newbie

Joined: 23 Mar 2021
Posts: 1

I am facing an isssue while migrating from nunit 2.5 to nunit 3.9 with respect to ibmmq . its working fine in nunit 2.5 but in nunit 3.9 i am getting mqrc_key_repository_error.
The following is the code.

[Test]
public void TestMq()
{
MQQueueManager _queueManager;
var properties = new Hashtable();
properties.Add(MQC.HOST_NAME_PROPERTY, "wmqdevap008.xx.xxxx.xxxxxx");
properties.Add(MQC.PORT_PROPERTY, 11426);
properties.Add(MQC.CHANNEL_PROPERTY, "xxxxxx.xx.xx");
properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
properties.Add(MQC.SSL_CERT_STORE_PROPERTY, sslKeyRepository);
properties.Add(MQC.SSL_CIPHER_SPEC_PROPERTY, "TLS_RSA_WITH_AES_128_CBC_SHA256");
properties.Add(MQC.SSL_CIPHER_SUITE_PROPERTY, "SSL_RSA_WITH_AES_128_CBC_SHA");
properties.Add(MQC.SSL_FIPS_REQUIRED_PROPERTY, 0);
properties.Add(MQC.SSL_PEER_NAME_PROPERTY, sslPeerName);

_queueManager = new MQQueueManager("xxxxxxx", properties);
}

The same code when executed in a console application or windows application works fine without any exception only when i try to run in nunit3 am getting exception

Console >> nunit3-console.exe Class1Library1.dll

Kindly help. Let me know if you need any information.

Regards,
Roopa
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Mar 24, 2021 2:01 am Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6224

When run in nunit3 can it resolve the path to the value of sslKeyRepository for the user it runs under?

How is the passphrase for the key store passed?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.

Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportMQRC_KEY REpository_error
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.