Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:41:57+00:00 2026-06-07T01:41:57+00:00

I have to create a client to listen to messages on a queue. SSL

  • 0

I have to create a client to listen to messages on a queue. SSL is being used and I am developing in dot net. I have trawled through hundreds of pages of documentation and forums to find something clear and concise and it looks like it just isn’t like that!

I have a jks, and I am able to telnet to the server where the queue is being published. Below is the code I have so far…

var factoryfactory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ);
var connectionfactory = factoryfactory.CreateConnectionFactory();
connectionfactory.SetIntProperty(XMSC.WMQ_CONNECTION_MODE,XMSC.WMQ_CM_CLIENT_UNMANAGED);

connectionfactory.SetStringProperty(XMSC.WMQ_SSL_KEY_REPOSITORY, @"C:\...\spindev1.key");
connectionfactory.SetStringProperty(XMSC.WMQ_SSL_CIPHER_SPEC, "SHA_WITH_RSA");
connectionfactory.SetStringProperty(XMSC.WMQ_CHANNEL, "SPINDEV1");

var connection = connectionfactory.CreateConnection();

I assume there must be a password somewhere but I cannot figure out how. My current error is 2538.

EDIT

So I just added IP and Port and now I’m getting error code 2393.

connectionfactory.SetStringProperty(XMSC.WMQ_HOST_NAME, "**.***.***.***");
connectionfactory.SetIntProperty(XMSC.WMQ_PORT, 1431);

EDIT 2

Okay so now I have managed to start using the code provided by the people who are providing the queue data, however he says that in order to use the SSL keys the application must be run as spindev1 – surely that would mean creating a whole new account?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:42:00+00:00Added an answer on June 7, 2026 at 1:42 am

    Okay issues have now been resolved. Below is the extract of code which is creating and starting the connection. One of the main problems was the SSL keys were made for a user called dev1, whereas my user is mcanty. If I’d known more I’m sure this result would have come sooner.

        public SISMQConnection(string connectionFactoryName, string queueName, string sslPeerName,
            string bindingsFilePath, string sslKeyRepository)
        {
            try
            {
                Hashtable aHashtable = new Hashtable { { "XMSC_IC_URL", bindingsFilePath } };
                InitialContext jndi = new InitialContext(aHashtable);
    
                //Java Naming and Directory Interface (JNDI)
                _queueObject = (IDestination)jndi.Lookup(queueName);
                _queueManager = (IConnectionFactory)jndi.Lookup(connectionFactoryName);
    
                _queueManager.SetStringProperty(XMSC.WMQ_SSL_PEER_NAME, string.Format("CN=\"{0}\"", sslPeerName));
                _queueManager.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, XMSC.WMQ_CM_CLIENT_UNMANAGED);
                _queueManager.SetStringProperty(XMSC.WMQ_SSL_KEY_REPOSITORY, sslKeyRepository);
                _queueManager.SetStringProperty(XMSC.WMQ_SSL_CIPHER_SPEC, "DES_SHA_EXPORT");
            }
            catch (Exception e)
            {
            }
        }
    
        public void Connect()
        {
            try
            {
                IConnection QueueConnection = _queueManager.CreateConnection();
    
                QueueSession = QueueConnection.CreateSession(true, AcknowledgeMode.AutoAcknowledge);
    
                IMessageConsumer QueueConsumer = QueueSession.CreateConsumer(_queueObject);
    
                QueueConsumer.MessageListener = OnNewMessageCallback;
    
                QueueConnection.Start();
            }
            catch (Exception e)
            {
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In express, I have defined some routes app.post(/api/v1/client, Client.create); app.get(/api/v1/client, Client.get); ... I have
When using the ajax library to create an Ajax Client Control, I have always
I have a need to create a HttpSession (via cookie) whenever a client invokes
I have a requirement to take client side XAML (from Silverlight) and create a
I have two requests in tomcat. One HTTP request will create a thread. Client
I have created a REST web service and successfully used it with a client.
I have a .Net DLL that I created that implements a WCF client that
I have this scenario: One client sends a message into a msmq queue instance
I have a client software (on Android) that listens to incoming messages. The messages
i have to create connecting server<=>client. I use this code: Server: import socket HOST

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.