Author |
Message
|
Faby.tp |
Posted: Fri May 13, 2011 1:12 am Post subject: SSL_INITIALIZATION error |
|
|
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 |
|
 |
mqjeff |
Posted: Fri May 13, 2011 2:03 am Post subject: |
|
|
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 |
|
 |
byrner |
Posted: Fri May 13, 2011 3:01 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Fri May 13, 2011 3:34 am Post subject: |
|
|
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 |
|
 |
Faby.tp |
Posted: Mon May 23, 2011 3:47 am Post subject: |
|
|
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 |
|
 |
|