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 » Password Encryption (HttpRequest|SOAPRequest)

Post new topic  Reply to topic Goto page 1, 2  Next
 Password Encryption (HttpRequest|SOAPRequest) « View previous topic :: View next topic » 
Author Message
3junior
PostPosted: Tue May 28, 2013 9:29 am    Post subject: Password Encryption (HttpRequest|SOAPRequest) Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

Hi All,

I have a requirement to call external web services using HttpRequest|SOAPRequest, which require authentication. I have already created follows that work by adding user name and password to header. What I need is a mechanism out of box (MB 8.0.0.2) that will allow me to encrypt a password and call it within the follow something similar to mqsidbsetparm for jdbc or ldap services. Also another requirement is to modify the password on the fly without having to rebuild bar files.


Hope someone has a solution that doesn't require me to create a custom app to decrypt and encrypt a password.


I have already used the search function and could not find the answer to this question. I seen other threads without solution.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue May 28, 2013 9:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I have the following information:

Quote:

- Create a configurable service with the following properties:
mqsicreateconfigurableservice <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -n propagation,idToPropagateToTransport,transportPropagationConfig -v TRUE,"STATIC ID",<mySecurityIdentifier>
- Set the desired username/password:
mqsisetdbparms <BROKERNAME> -n <mySecurityIdentifier> -u <username> -p <password>
- Verify the contents of your newly created security profile:
mqsireportproperties <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -r
- Deploy a message flow set to use <HTTPServiceIdentity> security profile and watch it send messages using your chosen username and password.


With thanks to the IBMers involved who pointed out you can do this in v8
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
3junior
PostPosted: Tue May 28, 2013 10:21 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

Vitor wrote:
I have the following information:

Quote:

- Create a configurable service with the following properties:
mqsicreateconfigurableservice <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -n propagation,idToPropagateToTransport,transportPropagationConfig -v TRUE,"STATIC ID",<mySecurityIdentifier>
- Set the desired username/password:
mqsisetdbparms <BROKERNAME> -n <mySecurityIdentifier> -u <username> -p <password>
- Verify the contents of your newly created security profile:
mqsireportproperties <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -r
- Deploy a message flow set to use <HTTPServiceIdentity> security profile and watch it send messages using your chosen username and password.


With thanks to the IBMers involved who pointed out you can do this in v8


Thanks for the quick reply
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue May 28, 2013 10:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

3junior wrote:
Do I have to use security profile for this solution?


I believe so. Why would you not want to?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
3junior
PostPosted: Tue May 28, 2013 10:26 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

Vitor wrote:
3junior wrote:
Do I have to use security profile for this solution?


I believe so. Why would you not want to?


NVM will test now

Thank again
Back to top
View user's profile Send private message
3junior
PostPosted: Tue May 28, 2013 10:42 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

3junior wrote:
Vitor wrote:
I have the following information:

Quote:

- Create a configurable service with the following properties:
mqsicreateconfigurableservice <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -n propagation,idToPropagateToTransport,transportPropagationConfig -v TRUE,"STATIC ID",<mySecurityIdentifier>
- Set the desired username/password:
mqsisetdbparms <BROKERNAME> -n <mySecurityIdentifier> -u <username> -p <password>
- Verify the contents of your newly created security profile:
mqsireportproperties <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -r
- Deploy a message flow set to use <HTTPServiceIdentity> security profile and watch it send messages using your chosen username and password.


With thanks to the IBMers involved who pointed out you can do this in v8


Thanks for the quick reply


Hi Vitor,

Do you know if this information is any where on the IBM website?

Thanks
Back to top
View user's profile Send private message
3junior
PostPosted: Tue May 28, 2013 12:07 pm    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

3junior wrote:
Vitor wrote:
I have the following information:

Quote:

- Create a configurable service with the following properties:
mqsicreateconfigurableservice <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -n propagation,idToPropagateToTransport,transportPropagationConfig -v TRUE,"STATIC ID",<mySecurityIdentifier>
- Set the desired username/password:
mqsisetdbparms <BROKERNAME> -n <mySecurityIdentifier> -u <username> -p <password>
- Verify the contents of your newly created security profile:
mqsireportproperties <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -r
- Deploy a message flow set to use <HTTPServiceIdentity> security profile and watch it send messages using your chosen username and password.


With thanks to the IBMers involved who pointed out you can do this in v8


Thanks for the quick reply



Can you please provide an example on how to incorporate this into http request node?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed May 29, 2013 3:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

3junior wrote:
Can you please provide an example on how to incorporate this into http request node?


The magic words are "security profile"
Back to top
View user's profile Send private message
3junior
PostPosted: Wed May 29, 2013 4:46 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

mqjeff wrote:
3junior wrote:
Can you please provide an example on how to incorporate this into http request node?


The magic words are "security profile"



I have security profile enabled. How do I get the value now in esql to build the header?

SET OutputRoot.Properties.IdentitySourceType='usernameAndPassword';
SET OutputRoot.Properties.IdentitySourceToken = 'myUser';
SET OutputRoot.Properties.IdentitySourcePassword = 'mytest';

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed May 29, 2013 4:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

3junior wrote:
mqjeff wrote:
3junior wrote:
Can you please provide an example on how to incorporate this into http request node?


The magic words are "security profile"



I have security profile enabled. How do I get the value now in esql to build the header?


You don't GET it from ESQL.

You leave it for the security profile to populate. That's the whole point of the security profile, that it knows the passwords and you don't.
Back to top
View user's profile Send private message
3junior
PostPosted: Wed May 29, 2013 5:00 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

mqjeff wrote:
3junior wrote:
mqjeff wrote:
3junior wrote:
Can you please provide an example on how to incorporate this into http request node?


The magic words are "security profile"



I have security profile enabled. How do I get the value now in esql to build the header?


You don't GET it from ESQL.

You leave it for the security profile to populate. That's the whole point of the security profile, that it knows the passwords and you don't.


Thanks for your quick reply. What if I had to use a custom header for username and password?
Back to top
View user's profile Send private message
3junior
PostPosted: Wed May 29, 2013 5:10 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

Also for the Identity Token type what value do I select?

Sorry for all the questions this type of setup is new to MB 8.0 and I cannot find documentation on the procedure described

Quote:
Vitor wrote:
I have the following information:

Quote:

- Create a configurable service with the following properties:
mqsicreateconfigurableservice <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -n propagation,idToPropagateToTransport,transportPropagationConfig -v TRUE,"STATIC ID",<mySecurityIdentifier>
- Set the desired username/password:
mqsisetdbparms <BROKERNAME> -n <mySecurityIdentifier> -u <username> -p <password>
- Verify the contents of your newly created security profile:
mqsireportproperties <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -r
- Deploy a message flow set to use <HTTPServiceIdentity> security profile and watch it send messages using your chosen username and password.


With thanks to the IBMers involved who pointed out you can do this in v8


Thanks for the quick reply
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed May 29, 2013 5:11 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

3junior wrote:
Thanks for your quick reply. What if I had to use a custom header for username and password?


You wouldn't be able to use a security profile.

You can't access the contents of security profiles, nor the contents of data stored by mqsisetdbparms from any broker transformation interface.

These both provide mechanisms to SEPARATE the developer from the REAL credentials, so that the proper ADMINISTRATOR can configure them.
Back to top
View user's profile Send private message
3junior
PostPosted: Wed May 29, 2013 5:32 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 16

3junior wrote:
Also for the Identity Token type what value do I select?


Quote:
Vitor wrote:
I have the following information:

Quote:

- Create a configurable service with the following properties:
mqsicreateconfigurableservice <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -n propagation,idToPropagateToTransport,transportPropagationConfig -v TRUE,"STATIC ID",<mySecurityIdentifier>
- Set the desired username/password:
mqsisetdbparms <BROKERNAME> -n <mySecurityIdentifier> -u <username> -p <password>
- Verify the contents of your newly created security profile:
mqsireportproperties <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -r
- Deploy a message flow set to use <HTTPServiceIdentity> security profile and watch it send messages using your chosen username and password.


With thanks to the IBMers involved who pointed out you can do this in v8


Thanks for the quick reply


HI MQJeff,

Also for the Identity Token type what value do I select?

Sorry for all the questions this type of setup is new to MB 8.0 and I cannot find documentation on the procedure described
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed May 29, 2013 5:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

3junior wrote:
3junior wrote:
Also for the Identity Token type what value do I select?


Quote:
Vitor wrote:
I have the following information:

Quote:

- Create a configurable service with the following properties:
mqsicreateconfigurableservice <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -n propagation,idToPropagateToTransport,transportPropagationConfig -v TRUE,"STATIC ID",<mySecurityIdentifier>
- Set the desired username/password:
mqsisetdbparms <BROKERNAME> -n <mySecurityIdentifier> -u <username> -p <password>
- Verify the contents of your newly created security profile:
mqsireportproperties <BROKERNAME> -c SecurityProfiles -o <HTTPServiceIdentity> -r
- Deploy a message flow set to use <HTTPServiceIdentity> security profile and watch it send messages using your chosen username and password.


With thanks to the IBMers involved who pointed out you can do this in v8


Thanks for the quick reply


HI MQJeff,

Also for the Identity Token type what value do I select?

Sorry for all the questions this type of setup is new to MB 8.0 and I cannot find documentation on the procedure described


You are attempting to have Broker administratively add a security token to an outbound message.

This security token needs to be verifiable by the receiver of the outbound message.

So it is the receiver of the outbound message that strictly controls the structure, content, nature, and all other aspects of the security token that you need to construct.

So you need to set the Identity Token type to the value that matches what the receiver of your message wants.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Password Encryption (HttpRequest|SOAPRequest)
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.