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 » WebSphere Message Broker (ACE) Support » HTTP SSL issues

Post new topic  Reply to topic
 HTTP SSL issues « View previous topic :: View next topic » 
Author Message
kaki
PostPosted: Tue Jan 25, 2011 10:59 am    Post subject: HTTP SSL issues Reply with quote

Newbie

Joined: 04 May 2006
Posts: 5

Hi All,
My Environment is WMB61, FP3, AIX
I have some existing HTTP flows running with out SSL. I need to create a new flow with SSL implemented on HTTP Request and HTTP Input/Reply.

Flow Design
HTTP Input-->Compute Node-->HTTP Request--->HTTP Reply

I applied SSL on HTTP Request node using
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerKeystoreFile -v /home/KDB

mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerTruststoreFile -v /home/KDB

mqsisetdbparms BRKR1 -n brokerkeystore::password -u MB -p passwort
mqsisetdbparms BRKR1 -n brokerTruststore::password -u MB -p passwort

Bounced the broker.
My flow worked fine with HTTP Request SSL.

Now i did configuration for HTTP INpput/reply using
wmbadm@wbidev1:adm> mqsichangeproperties BRKR1 -b httplistener -o HTTPListener -n enableSSLConnector -v true

wmbadm@wbidev1:adm> mqsichangeproperties BRKR1 -b httplistener -o HTTPSConnector -nkeystoreFile -v /home/KDB

wmbadm@wbidev1:adm> mqsichangeproperties BRKR1 -b httplistener -o HTTPSConnector -n keystorePass -v passwort

wmbadm@wbidev1:adm> mqsichangeproperties BRKR1 -b httplistener -o HTTPSConnector -n port -v 7777

Bounced the broker.

Now My New interface is not working and the existing interfaces are also impacted.

Could you please let me know where is the mistake.

Thanks
Back to top
View user's profile Send private message
gag_nm
PostPosted: Tue Jan 25, 2011 11:16 pm    Post subject: Reply with quote

Centurion

Joined: 16 Oct 2008
Posts: 102

HI Kaki,

In below commands you did not mention file name with extension.
Quote:
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerKeystoreFile -v /home/KDB

mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerTruststoreFile -v /home/KDB


suppose if your keystore name is key.jks,then it should be something
Quote:
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerKeystoreFile -v /home/KDB/key.jks
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerTruststoreFile -v /home/KDB/key.jks

you need to execute below command set Keystore file type.
Quote:
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerKeystoreType -v JKS
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerTruststoreType -v JKS



Quote:
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerKeystoreType -v JKS
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerKeystoreFile -v /home/KDB/key.jks
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerKeystorePass -v passwort
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerTruststoreType -v JKS
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerTruststoreFile -v /home/KDB/key.jks
mqsichangeproperties BRKR1 -o BrokerRegistry -n brokerTruststorePass -v passwort

mqsistop BRKR1 -- Stop Broker

Run below commands
mqsisetdbparms BRKR1 -n brokerKeystore::password -u MB -p passwort
mqsisetdbparms BRKR1 -n brokerTruststore::password -u MB -p passwort

mqsistart BRKR1 -- start Broker

Runn below steps for HTTPInput/Reply

mqsichangeproperties BRKR1 -b httplistener -o HTTPListener -n enableSSLConnector -v true
mqsichangeproperties BRKR1 -b httplistener -o HTTPSConnector -n keystoreType -v JKS you missed this step
mqsichangeproperties BRKR1 -b httplistener -o HTTPSConnector -n keystoreFile -v /home/KDB/key.jks
mqsichangeproperties BRKR1 -b httplistener -o HTTPSConnector -n keystorePass -v passwort
mqsichangeproperties BRKR1 -b httplistener -o HTTPSConnector -n port -v 7777




then check Registry, that you can check by using following command,

verify all properties, which you have set.

mqsireportproperties BRKR-o BrokerRegistry -a

mqsireportproperties BRKR-b httplistener -o HTTPSConnector -a
Back to top
View user's profile Send private message
kaki
PostPosted: Wed Jan 26, 2011 9:43 am    Post subject: HTTP SSL issues Reply with quote

Newbie

Joined: 04 May 2006
Posts: 5

Thanks Gag.

1. Is it mandatory to have extension .jks at the end for the Key/Trust store databases ?
2. Is it mandatory to set "brokerKeystoreType"
I am seeing on by Broker
BrokerRegistry
uuid='BrokerRegistry'
brokerKeystoreType='JKS'
brokerKeystoreFile='/home/KDB'
brokerKeystorePass='brokerKeystore::password'
brokerTruststoreType='JKS'
brokerTruststoreFile='/home/KDB'
brokerTruststorePass='brokerTruststore::password'
httpConnectorPortRange=''
httpsConnectorPortRange=''
operationMode='

3. When i run below command HTTP flows were impacted. Why?
mqsichangeproperties BRKR1 -b httplistener -o HTTPListener -n enableSSLConnector -v true

Appreciated your help.

Thanks,
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 26, 2011 8:02 pm    Post subject: Re: HTTP SSL issues Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

kaki wrote:
Thanks Gag.
3. When i run below command HTTP flows were impacted. Why?
mqsichangeproperties BRKR1 -b httplistener -o HTTPListener -n enableSSLConnector -v true

Appreciated your help.

Thanks,


Did you use a different port for https and http?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gag_nm
PostPosted: Wed Jan 26, 2011 8:54 pm    Post subject: Reply with quote

Centurion

Joined: 16 Oct 2008
Posts: 102

Hi Kaki,

can you please tell me your key store name file with extension.

please go through below URL for port used in IBM Message Broker

http://www-01.ibm.com/support/docview.wss?uid=swg21420032
Back to top
View user's profile Send private message
kaki
PostPosted: Fri Jan 28, 2011 12:18 am    Post subject: HTTP SSL issues Reply with quote

Newbie

Joined: 04 May 2006
Posts: 5

Thanks Saper and Gag.

Saper I am using different ports for HTTP(7082) and HTTPS(changed to 7804 now).
I ran the commands recommende by Gag and also changed the KDB to KDB.jks.

I see these properties now
:trace> mqsireportproperties BRKR1 -b httplistener -o HTTPSConnector -a
HTTPSConnector
uuid='HTTPSConnector'
algorithm='Platform Default'
clientAuth='Platform Default'
keystoreFile='/home/KDB.jks'
keystorePass='*********'
keystoreType='JKS'
sslProtocol='Platform Default'
ciphers='Platform Default'
address=''
port='7804'
allowTrace=''
maxPostSize=''
acceptCount=''
bufferSize=''
compressableMimeTypes=''
compression=''
connectionLinger=''
connectionTimeout=''
maxHttpHeaderSize=''
maxKeepAliveRequests=''
maxSpareThreads=''
maxThreads=''
minSpareThreads=''
noCompressionUserAgents=''
restrictedUserAgents=''
socketBuffer=''
tcpNoDelay=''
enableLookups='false'
-------------------------------------------------------
:trace> mqsireportproperties BRKR1 -o BrokerRegistry -a BrokerRegistry
uuid='BrokerRegistry'
brokerKeystoreType='JKS'
brokerKeystoreFile='/home/KDB.jks'
brokerKeystorePass='brokerKeystore::password'
brokerTruststoreType='JKS'
brokerTruststoreFile='/home/KDB.jks'
brokerTruststorePass='brokerTruststore::password'
httpConnectorPortRange=''
httpsConnectorPortRange=''
operationMode=''

Other HTTP flows started failing after
mqsichangeproperties BRKR1 -b httplistener -o HTTPListener -n enableSSLConnector -v true

Then i ran mqsichangeproperties BRKR1 -b httplistener -o HTTPListener -n enableSSLConnector -v '' then HTTP flows started working fine.

Any clue why they are failing ?

Thanks.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 28, 2011 9:09 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

working as designed. You need to specify a different port for SSL so that it won't impact the non SSL traffic.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HTTP SSL issues
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.