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 Index » General IBM MQ Support » SSL_INITIALIZATION error

Post new topic  Reply to topic
 SSL_INITIALIZATION error « View previous topic :: View next topic » 
Author Message
Faby.tp
PostPosted: Fri May 13, 2011 1:12 am    Post subject: SSL_INITIALIZATION error Reply with quote

Novice

Joined: 05 May 2011
Posts: 13

Code is runnening in MQC v 7.0.1.4 written in C#

Code:
System.Collections.Hashtable qProp = new System.Collections.Hashtable();
qProp[MQC.HOST_NAME_PROPERTY] = "HOSTNAME";
qProp[MQC.PORT_PROPERTY] = 1414;
qProp[MQC.CHANNEL_PROPERTY] = "CHANNEL";
qProp[MQC.TRANSPORT_PROPERTY] = MQC.TRANSPORT_MQSERIES_CLIENT;
qProp[MQC.SSL_CIPHER_SPEC_PROPERTY] = "TRIPLE_DES_SHA_US";
qProp[MQC.SSL_CERT_STORE_PROPERTY] = @"C:\MQ_DotNet\SSLKEY\key";
qProp[MQC.FIPS_REQUIRED] = false;

MQQueueManager myMQQueueManager;
myMQQueueManager = new MQQueueManager("QMGR", queueProperties);

The above code is working fine in Windows forms but giving SSL_INITIALIZATION error in Windows Services.
In windows service, threading is used. What is the reason for error?

Is there any other better codiing is available for SSL enabled connection?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 13, 2011 2:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I bet that a different user is in place when running under Windows Services.
Back to top
View user's profile Send private message
byrner
PostPosted: Fri May 13, 2011 3:01 am    Post subject: Reply with quote

Newbie

Joined: 11 May 2011
Posts: 8

We have a windows service hosted in IIS successfully doing mutual authentication with qmgr on iSeries.

You might need to set the identity of the application pool that is hosting your service application to match the user id in your key database
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 13, 2011 3:34 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

byrner wrote:
You might need to set the identity of the application pool that is hosting your service application to match the user id in your key database

Back to top
View user's profile Send private message
Faby.tp
PostPosted: Mon May 23, 2011 3:47 am    Post subject: Reply with quote

Novice

Joined: 05 May 2011
Posts: 13

After Log on user Id is configured, the Windows Service application is working fine....

Thanks you very much mqjeff & byrner for the guidance.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » SSL_INITIALIZATION 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.