Author |
Message
|
eairesource |
Posted: Tue Aug 27, 2013 9:43 am Post subject: Accessing Key Store from ESQL |
|
|
Newbie
Joined: 16 Apr 2013 Posts: 9
|
Is there a way I can access cert/key of keystore from the Message broker ESQL code? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 27, 2013 10:13 am Post subject: Re: Accessing Key Store from ESQL |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
eairesource wrote: |
Is there a way I can access cert/key of keystore from the Message broker ESQL code? |
Yes. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 27, 2013 10:26 am Post subject: Re: Accessing Key Store from ESQL |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
eairesource wrote: |
Is there a way I can access cert/key of keystore from the Message broker ESQL code? |
Define "access" - do you mean to apply the contents of the keystore for SSL validation, extract the certificate to send to a 3rd party, determine the expiry date of the certificate for administrative purposes, what?
You might also (to head off the next round of obvious questions) explain why you want to do this in ESQL when most of the typical use cases that involve a keystore are handed off to the WMB software to deal with via "access" to the keystore. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Tibor |
Posted: Wed Aug 28, 2013 2:21 am Post subject: Re: Accessing Key Store from ESQL |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
eairesource wrote: |
Is there a way I can access cert/key of keystore from the Message broker ESQL code? |
No. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Aug 28, 2013 3:16 am Post subject: Re: Accessing Key Store from ESQL |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Tibor wrote: |
eairesource wrote: |
Is there a way I can access cert/key of keystore from the Message broker ESQL code? |
No. |
Tibor, if you do not know what you are talking about, then don't post. YES - one can easily access the key store or truststore from ESQL by calling a Java wrapper around javax.net.ssl class. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Tibor |
Posted: Wed Aug 28, 2013 3:21 am Post subject: Re: Accessing Key Store from ESQL |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
lancelotlinc wrote: |
one can easily access the key store or truststore from ESQL by calling a Java wrapper around javax.net.ssl class. |
It is true, but strictly it is not an ESQL but a Java solution. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Aug 28, 2013 3:24 am Post subject: Re: Accessing Key Store from ESQL |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Tibor wrote: |
lancelotlinc wrote: |
one can easily access the key store or truststore from ESQL by calling a Java wrapper around javax.net.ssl class. |
It is true, but strictly it is not an ESQL but a Java solution. |
Here is the question:
CAN YOU ACCESS THE KEYSTORE FROM ESQL?
The answer is YES, which is not what you said.
Using your <incorrect> logic, one could say that ESQL is not an ESQL solution but an assembler/C solution.
Back to Vitor's point: Why does the OP want to access the keystore from ESQL? Of what benefit or business value does this accomplish? Not much. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|