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 request over SSL

Post new topic  Reply to topic Goto page Previous  1, 2
 Http request over SSL « View previous topic :: View next topic » 
Author Message
fjb_saper
PostPosted: Mon Jun 01, 2015 8:09 am    Post subject: Reply with quote

Grand High Poobah

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

You may want to create a self signed cert for your keystore. Make sure to export the corresponding public cert to your truststore... and provide it to your customer.... (DEV/QA)

For production you usually put in a cert request and get a signed cert from your favorite certification authority.



_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
orman
PostPosted: Mon Jun 01, 2015 8:01 pm    Post subject: Reply with quote

Apprentice

Joined: 08 Aug 2013
Posts: 40

Well
I lately used ssl in SOAP nodes and yesterday it worked with client and server authentication


some thinks that use should you did well
1 .create jks with relevant CA and
2. configure in IIB the listener (is it wide or embedded ? default for HTTP is wide .. )
2.1 the key-store
2.2 the trust-store
2.2 the pass name ("nickname")
2.3 set the "nickname" value - mqsisetdbparms
2.4 about clientAuth - i think you want to use no client authentication, so maybe try to make it false
2.5 if it is not false I think you got to fill the keyAlias value as your "friendlykey" name or label of your cert
3. after all this you should reload you broker
4. be sure that the client as you cert CA - and if it self-signed you - the cert it self
Back to top
View user's profile Send private message
grasher134
PostPosted: Mon Jun 01, 2015 8:34 pm    Post subject: Reply with quote

Acolyte

Joined: 22 Oct 2014
Posts: 62

Thank you for your help! But my case is a bit different. But I'll try to do all of these, cos I'm out of variants.

Quote:
and provide it to your customer.... (DEV/QA)


Hmm.. My problem is - I'm the customer) I make requests to this https address and I doubt they will accept some kind of self-signed certificate.

Quote:
4. be sure that the client as you cert CA - and if it self-signed you - the cert it self


And again, I'm not creating some web service, protected by SSL. I need to connect to some https://login.live.com (for example, I provided real address above) and make some POST request. Do I need to create self-signed certificate for this purpose? Or get some CA cert?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 02, 2015 2:12 am    Post subject: Reply with quote

Grand High Poobah

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

Think about the fact that your browser most likely has a cert. I believe that one would be self signed... but what do I know about browsers?
In case of a self signed, the public cert will be flowed on the connection.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
joebuckeye
PostPosted: Tue Jun 02, 2015 4:44 am    Post subject: Reply with quote

Partisan

Joined: 24 Aug 2007
Posts: 365
Location: Columbus, OH

grasher134 wrote:
And again, I'm not creating some web service, protected by SSL. I need to connect to some https://login.live.com (for example, I provided real address above) and make some POST request. Do I need to create self-signed certificate for this purpose? Or get some CA cert?


You do not need a self-signed cert if all you are doing is making a call to an HTTPS endpoint.

You need to get the Root cert of the endpoint you are trying to connect to.

Typically you can get this if you put the URL you are trying to call into a browser and then clicking to the left of the URL in your browser to show you the certificate chain. The chain should show you the host cert and the chain of certs leading back to a Root CA. You can then get the Root CA cert and put that cert into your trust store.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 02, 2015 4:44 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You need to take the appropriate steps to ensure that your client application making the POST has a useful way of adding the necessary information to it's trust store.

In the case of a browser, the browser itself will come with a truststore filled with a large number of CA public keys.
Back to top
View user's profile Send private message
orman
PostPosted: Tue Jun 02, 2015 1:59 pm    Post subject: Reply with quote

Apprentice

Joined: 08 Aug 2013
Posts: 40

grasher134 wrote:
Thank you for your help! But my case is a bit different. But I'll try to do all of these, cos I'm out of variants.

Quote:
and provide it to your customer.... (DEV/QA)


Hmm.. My problem is - I'm the customer) I make requests to this https address and I doubt they will accept some kind of self-signed certificate.

Quote:
4. be sure that the client as you cert CA - and if it self-signed you - the cert it self


And again, I'm not creating some web service, protected by SSL. I need to connect to some https://login.live.com (for example, I provided real address above) and make some POST request. Do I need to create self-signed certificate for this purpose? Or get some CA cert?


have you tried using SoapUI http requests?
there you can configure a cert in a keystore and check WMB ssl configuration
start with it and then move to other tools and browsers ..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

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