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 » IBM MQ Security » SSL ONEWAY FROM CLIENT TO MQ SERVER

Post new topic  Reply to topic
 SSL ONEWAY FROM CLIENT TO MQ SERVER « View previous topic :: View next topic » 
Author Message
ashokt
PostPosted: Mon Oct 10, 2022 3:43 am    Post subject: SSL ONEWAY FROM CLIENT TO MQ SERVER Reply with quote

Novice

Joined: 09 Oct 2022
Posts: 18

Hi Team,

I have been facing SSL issue since 10 days, I've Configured in my local system SSL Between vmware(linux) to windows server(not installed MQ client)

From the VMWARE:
---------------------

I've created QMGR
->START QMGR
->DEFINE LISTENER
->START LISTENER
->DEF SVRCONN CHL
DEF CHL(SSL.SVRCONN) CHLTYPE(svrconn) mcauser('mqm') .
->DEFINE CLNT CONNECTION CHANNEL
(DEF CHL(SSL.SVRCONN) CHLTYPE(CLNTCONN) CONNAME(xx.25.11.113(1661)
->Give the connect permisson for respective client application
->given full permissions to the queues .
->Then I created kdb file ,sef-signed cert and extract it then given name as cert.arm file by using ikaymantool.
->altered the channels channels with below code

TLS_RSA_WITH_AES_128_CBC_SHA256


->Then copied .arm file to Clint server's temp location as below explained.

----------------------------------------
Client SIDE(windows local system):
--------------------
Chosen Temp path
->Created Kdb file ,add cert.arm file to KDB File
->Copied the TAB file to client machine under the temp folder
->SET THE ENVIRONMENT VARIABLE LIKE BELOW

SET MQSLLKEYR=C:\Users\testmq\temp\MQClient\ssl\key
SET MQCHLLIB=C:\Users\testmq\temp\MQClient
SET MQCHLTAB=AMQCLCHL.TAB
SET MQSERVER=


When i running the command like amqputc QL throwing below reason codes.

mqrc 2539 ,2538.

Note:refreshing SSL ,disabled chlauth ,aconnauth. kindly advise me.

Regards,
Ashok
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Oct 10, 2022 5:02 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9442
Location: US: west coast, almost. Otherwise, enroute.

Was amqsputc or any other MQ client sample app successful BEFORE you attempted to implement your SSL solution?

What error messages in error logs on the server side?

Did you research r/c 2538 and 2539? Did you follow the programmer response to diagnose these r/c's?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
ashokt
PostPosted: Mon Oct 10, 2022 9:26 pm    Post subject: Reply with quote

Novice

Joined: 09 Oct 2022
Posts: 18

bruce2359 wrote:
Was amqsputc or any other MQ client sample app successful BEFORE you attempted to implement your SSL solution?

What error messages in error logs on the server side?

Did you research r/c 2538 and 2539? Did you follow the programmer response to diagnose these r/c's?


-----------------------------------------------
Hi Bruce,

Thanks for the response , Yes amqsptc was successfully before implementing the SSL ,When alter the channels with SSLCIPH ,after that it's not working and reflecting below above reason codes..2539 getting channel configuration error.

when i searched with google getting below response.


---------------------------------------------------------------
The server and client cannot agree on the channel attributes to use.
There are errors in one or both of the QM.INI or MQCLIENT.INI configuration files.
The server machine does not support the code page used by the client.

------------------------------------------------------------------

MQ Error logs not generated any error logs related to 2539.

Even i tried from below command from client machine.

set mqserver=TUBC.SVRCONN/TCP/x.x.x.x(1661)

getting 2393.

SSL INITILIZASION ERROR

MQ Error logs showing that SSLCIPH value not matched .

AMQ9639E: Remote channel 'AUBC.SVRCONN' did not specify a CipherSpec.

EXPLANATION:
Remote channel 'AUBC.SVRCONN' did not specify a CipherSpec when the local
channel expected one to be specified.

The remote host is 'abc (x.x.x.x.)'.

The channel did not start.
ACTION:
Change the remote channel 'AUBC.SVRCONN' on host 'abc (x.x.x.x.)'.
to specify a CipherSpec so that both ends of the channel have matching
CipherSpecs.

Kindly advise.

Regards,
Ashok.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Oct 11, 2022 8:34 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9442
Location: US: west coast, almost. Otherwise, enroute.

ashokt wrote:
DEF CHL(SSL.SVRCONN) CHLTYPE(CLNTCONN) CONNAME(xx.25.11.113(1661)

You didn't specify SSL attributes on this DEFINE.
ashokt wrote:
->altered the channels channels with below code
TLS_RSA_WITH_AES_128_CBC_SHA256

Which channels did you ALTER? Please be precise. The SVRCONN on the qmgr? The CLNTCONN DEF?

Did you ALTER the channel DEFs before you exposed (copied) the CCDT to the client platform? Use any text editor to inspect the CCDT on the client. Do you see matching SSL specifications?

Use runmqsc to Display both SVRCONN and CLNTCONN channel definitions. Post results here.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Oct 12, 2022 12:12 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

ashokt wrote:
set mqserver=TUBC.SVRCONN/TCP/x.x.x.x(1661)

Please read further in regard to the use of TLS and the MQSERVER variable, specifically the second paragraph.
_________________
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
ashokt
PostPosted: Wed Oct 12, 2022 1:38 am    Post subject: Reply with quote

Novice

Joined: 09 Oct 2022
Posts: 18

bruce2359 wrote:
ashokt wrote:
DEF CHL(SSL.SVRCONN) CHLTYPE(CLNTCONN) CONNAME(xx.25.11.113(1661)

You didn't specify SSL attributes on this DEFINE.
ashokt wrote:
->altered the channels channels with below code
TLS_RSA_WITH_AES_128_CBC_SHA256

Which channels did you ALTER? Please be precise. The SVRCONN on the qmgr? The CLNTCONN DEF?

Did you ALTER the channel DEFs before you exposed (copied) the CCDT to the client platform? Use any text editor to inspect the CCDT on the client. Do you see matching SSL specifications?

Use runmqsc to Display both SVRCONN and CLNTCONN channel definitions. Post results here.


===========================
Hi Bruce,

Thank you for your update.

I've erased old configuration and configured properly now it's working fine as expected. thank you very much for your valuable support.

Regards,
Ashok
Back to top
View user's profile Send private message
ashokt
PostPosted: Wed Oct 12, 2022 1:41 am    Post subject: Reply with quote

Novice

Joined: 09 Oct 2022
Posts: 18

exerk wrote:
ashokt wrote:
set mqserver=TUBC.SVRCONN/TCP/x.x.x.x(1661)

Please read further in regard to the use of TLS and the MQSERVER variable, specifically the second paragraph.


=============
Hi Exerk,

Thank you for your response . 2nd time i am not used mqserver=TUBC.SVRCONN/TCP/x.x.x.x(1661) this command from client machine .used amqsputc queue name , then it's working fine with ssl.

Regards,
Ashok
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 » IBM MQ Security » SSL ONEWAY FROM CLIENT TO MQ SERVER
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.