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 » C# Client error on message put - MQRC_NOT_AUTHORIZED

Post new topic  Reply to topic Goto page Previous  1, 2
 C# Client error on message put - MQRC_NOT_AUTHORIZED « View previous topic :: View next topic » 
Author Message
hughson
PostPosted: Tue Oct 01, 2024 5:42 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1959
Location: Bay of Plenty, New Zealand

mangeshp16 wrote:
... finding this page which documents the gakit reason codes.

They're like gold dust those pages!
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
mangeshp16
PostPosted: Wed Oct 02, 2024 3:10 pm    Post subject: Reply with quote

Newbie

Joined: 14 Sep 2024
Posts: 8

Just to let you know we also opened a case with IBM as the other java api works with public certificate and Ibm says i don?t need private keys so not sure what else to look at. Is there a difference between versions. I tried 9.3 and 9.4 versions for client libraries.

Also the policy on the queue is
-p queuename -e AES256 -r ?CN=label,O=mycompany,C=country? -t 0

-t 0 -> means signing is optional ? if I understand correctly
Back to top
View user's profile Send private message
mangeshp16
PostPosted: Wed Oct 02, 2024 3:11 pm    Post subject: Reply with quote

Newbie

Joined: 14 Sep 2024
Posts: 8

Just to let you know we also opened a case with IBM as the other java api works with public certificate and Ibm says i don?t need private keys so not sure what else to look at. Is there a difference between versions. I tried 9.3 and 9.4 versions for client libraries.

Also the policy on the queue is
-p queuename -e AES256 -r ?CN=label,O=mycompany,C=country? -t 0

-t 0 -> means signing is optional ? if I understand correctly
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 03, 2024 2:35 am    Post subject: Reply with quote

Grand High Poobah

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

mangeshp16 wrote:
Just to let you know we also opened a case with IBM as the other java api works with public certificate and Ibm says i don?t need private keys so not sure what else to look at. Is there a difference between versions. I tried 9.3 and 9.4 versions for client libraries.

Also the policy on the queue is
-p queuename -e AES256 -r ?CN=label,O=mycompany,C=country? -t 0

-t 0 -> means signing is optional ? if I understand correctly

Not quite sure what you're referencing. For set up you don't need any private keys, but to operate you do.
Say you use the public cert to encrypt, that means you'll need the private key to decrypt!

On the other hand seeing that you have policy problem, did you verify that the users using the policies have browse authorization on the (SYSTEM) policy queue?


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mangeshp16
PostPosted: Thu Oct 03, 2024 3:58 pm    Post subject: Reply with quote

Newbie

Joined: 14 Sep 2024
Posts: 8

@fjb_saber, Thank for your reply.
My question is not for setup. I was just stating the fact that per queue policy, queue doesn?t need signing but just encryption.

Now for the certificate issue let me explain:

We have 2 queues, sending queue and receiving queue.
On sender side public certificate for each queue for encryption and decryption.
server got complete certificate.

Question is if there is no signing then public certificate should be enough to encrypt messages for sending queue.

But i am getting the error previously stated in one of the messages that tells me i need private key. Am I missing anything as far as configuration is concerned? Other java api using same queues is working fine.

See Error below:
manager.

---
----- amqxeida.c : 7104 -------------------------------------------------------
9/30/2024 17:37:29 -
AMQ9008E: Cannot acquire the certificate for the label: <lable> in the keystore
file <filepath>. GSKit ACME
GSS minor reason is 58.

EXPLANATION:
IBM MQ security policy interceptor was unable to read the certificate for the
given label from keystore.
ACTION:
Make sure the label is correctly set as the cms.certificate entry of the
configuration file. Check if the keystore contains the certificate for the
given label.
----- smqodida.c : 1239 -------------------------------------------------------
9/30/2024 17:37:29 -
AMQ9012E: The IBM MQ security policy interceptor could not acquire the public
key credential.

EXPLANATION:
The IBM MQ security policy interceptor could not perform a public key
infrastructure (PKI) login.
ACTION:
Check the error messages related to acquiring public key credentials to
determine the cause of the failure. Check whether user has the permission to
read the kdb and stash files and verify whether the kdb file contains a
certificate with the label specified. Finally, check whether the certificate
has not expired.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Oct 04, 2024 11:18 am    Post subject: Reply with quote

Grand High Poobah

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

mangeshp16 wrote:
@fjb_saber, Thank for your reply.
My question is not for setup. I was just stating the fact that per queue policy, queue doesn?t need signing but just encryption.

Now for the certificate issue let me explain:

We have 2 queues, sending queue and receiving queue.
On sender side public certificate for each queue for encryption and decryption.
server got complete certificate.

Question is if there is no signing then public certificate should be enough to encrypt messages for sending queue.

But i am getting the error previously stated in one of the messages that tells me i need private key. Am I missing anything as far as configuration is concerned? Other java api using same queues is working fine.

See Error below:
manager.

---
----- amqxeida.c : 7104 -------------------------------------------------------
9/30/2024 17:37:29 -
AMQ9008E: Cannot acquire the certificate for the label: <lable> in the keystore
file <filepath>. GSKit ACME
GSS minor reason is 58.

EXPLANATION:
IBM MQ security policy interceptor was unable to read the certificate for the
given label from keystore.
ACTION:
Make sure the label is correctly set as the cms.certificate entry of the
configuration file. Check if the keystore contains the certificate for the
given label.
----- smqodida.c : 1239 -------------------------------------------------------
9/30/2024 17:37:29 -
AMQ9012E: The IBM MQ security policy interceptor could not acquire the public
key credential.

EXPLANATION:
The IBM MQ security policy interceptor could not perform a public key
infrastructure (PKI) login.
ACTION:
Check the error messages related to acquiring public key credentials to
determine the cause of the failure. Check whether user has the permission to
read the kdb and stash files and verify whether the kdb file contains a
certificate with the label specified. Finally, check whether the certificate
has not expired.

You are running the interceptor, which means you are acting as an endpoint.
The endpoint will need the private key linked to the certificate used for the encryption.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mangeshp16
PostPosted: Mon Oct 07, 2024 3:05 pm    Post subject: Reply with quote

Newbie

Joined: 14 Sep 2024
Posts: 8

Understood. Thanks for your explanation.

How does then JMS client api work for java which doesn?t need private key for AMS?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 07, 2024 7:32 pm    Post subject: Reply with quote

Grand High Poobah

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

mangeshp16 wrote:
Understood. Thanks for your explanation.

How does then JMS client api work for java which doesn?t need private key for AMS?

I assume the interception is being done for AMS and the JMS Client does one way TLS and not 2 way, i.e. it only needs the public cert / root CA from the MQ Server and the channel says client cert is optional.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
hughson
PostPosted: Fri Oct 11, 2024 2:00 am    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1959
Location: Bay of Plenty, New Zealand

mangeshp16 wrote:
Just to let you know we also opened a case with IBM as the other java api works with public certificate and Ibm says i don?t need private keys so not sure what else to look at. Is there a difference between versions. I tried 9.3 and 9.4 versions for client libraries.

Also the policy on the queue is
-p queuename -e AES256 -r ?CN=label,O=mycompany,C=country? -t 0

-t 0 -> means signing is optional ? if I understand correctly

If IBM says you don't need private keys in this situation and the IBM MQ product is complaining that a private key is needed, are IBM looking into why this is?

You say that you are not sure what else to look at, but if this is a product defect, then there is nothing else that you can do, except wait for IBM to produce a fix.

What did they say in the case? Did they accept it as a defect?

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Security » C# Client error on message put - MQRC_NOT_AUTHORIZED
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.