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 » AMS and amqsput example (2035 auth err)

Post new topic  Reply to topic Goto page Previous  1, 2
 AMS and amqsput example (2035 auth err) « View previous topic :: View next topic » 
Author Message
Boyd
PostPosted: Wed Apr 09, 2014 6:26 am    Post subject: Reply with quote

Novice

Joined: 06 Apr 2014
Posts: 16

It looks like the queue is SYSTEM.ADMIN.QMGR.EVENT

Examining....
Back to top
View user's profile Send private message
Boyd
PostPosted: Fri Apr 11, 2014 10:34 am    Post subject: Reply with quote

Novice

Joined: 06 Apr 2014
Posts: 16

There was no event in the queue, and apparently this is because when setting up the AMS exercise, the queue had a policy assigned to it only to allow certain users to access it.

(The AMS exercise works perfectly, I just cant get the explorer to read the queue.)

I am using the following policy

Code:
setmqspl -m QM_VERIFY_AMS -p TEST.Q -s SHA1 -a "CN=alice,O=IBM,C=GB" -e AES256 -r "CN=bob,O=IBM,C=GB"


So apparently only users exposing the Bob_Cert certificate can read from the queue.

So I moved the Bob_cert created in the AMS exercise to the Windows machine where I am running the MQ Explorer.

I create a keystore.jks and imporedt the Bob_Cert into it, as follows:

Code:
C:\Users\mqexp\keystore>keytool -import -file /users/mqexp/keystor
e/bob_public.arm -alias Bob_Cert -keystore /users/mqexp/keystore/keystore
.jks -storepass passw0rd
Owner: CN=bob, O=IBM, C=GB
Issuer: CN=bob, O=IBM, C=GB
Serial number: 636a9d70e1ef80c8
Valid from: 4/6/14 2:30 PM until: 4/7/15 2:30 PM
Certificate fingerprints:
         MD5:  77:90:D1:BB:72:AE:48:5E:63:D5:7D:6E:C3:D1:58:83
         SHA1: FB:50:12:FB:AD:09:4D:6F:05:63:75:FC:A5:B9:4B:08:9E:A0:B2:0D
Trust this certificate? [no]:  yes
Certificate was added to keystore


The I create the following keystore.conf, and place it on /users/mqexp on Windows:

Code:
JKS.keystore = /users/mqexp/keystore
JKS.certificate = Bob_Cert
JKS.encrypted = no
JKS.keystore_pass = passw0rd
JKS.key_pass = passw0rd
JKS.provider = IBMJCE


I restart the MQ Explorer on Windows, but I still get the Explorer error when I try to browse the queue set by the policy:

Code:
Explanation:  The queue manager security mechanism has indicated that the userid associated with this request  is not authorized to access this object


I do not know how to set the MQ Explorer to look at the keystore.conf and to look at the certificates

How can I connect the MQ Explorer to see the certificates (I looked in QMGR->Properties->SSL, but that is refering to certificates on the server where the QM is stored)
Back to top
View user's profile Send private message
subhmq
PostPosted: Tue Jul 01, 2014 9:23 am    Post subject: Reply with quote

Newbie

Joined: 01 Jul 2014
Posts: 3

If this has not worked yet, I would suggest to do the following.

Open a command window, set the MQS_KEYSTORE_CONF variable and start MQExplorer from the same command window using strmqcfg command. Then, try browsing the messages on the queue and see if it works.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 01, 2014 6:50 pm    Post subject: Reply with quote

Grand High Poobah

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

The AMS documentation states very clearly that if you are not one of the authorized users and want to browse the queue (for admin reasons) you have to access the queue through an ALIAS queue that is not configured in AMS. This way you will see the messages encrypted.

Have fun
_________________
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 Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » AMS and amqsput example (2035 auth err)
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.