Author |
Message
|
Mbxp |
Posted: Wed Mar 15, 2017 10:36 pm Post subject: XML encryption using RSA in IIB 10 |
|
|
Newbie
Joined: 06 Dec 2011 Posts: 8
|
Hi Everyone,
We got a requirement for XML encryption and decryption using the below mentioned mechanism. We are using IIB version 10.0.0.5.
We need to create a digital signature and pass it in one of the tag in the payload body. These are the steps which we need to follow:
1. We need to generate a message digest of request XML using SHA-256 hashing algorithm.
2. We need to encrypt the above mentioned digest value using RSA. We need to use our server private key for encryption.
3. Encode the encrypted value in Step 2 with Base64 encoding.
4. Append the digital signature Base 64 encoded value calculated in step 3 to the request message 'signature' element.
This facility of encryption is not available in ESQL and may be some Java function needs to be written which we can call it from ESQL. Can someone help me with some documentation on the RSA encryption in IIB? |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 16, 2017 11:21 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You really need to look at the XML encryption and signature standards, and most specifically at the SOAP standards. You may find this problem much easier to solve using SOAP instead of just XML.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
adubya |
Posted: Thu Mar 16, 2017 11:46 pm Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
Write a Java class to perform your encryption/signing stuff and call that from ESQL. _________________ Independent Middleware Consultant
andy@knownentity.com |
|
Back to top |
|
 |
Mbxp |
Posted: Mon Mar 20, 2017 3:20 am Post subject: |
|
|
Newbie
Joined: 06 Dec 2011 Posts: 8
|
Thanks adubya and fjb_saber. I have written a Java class and called it from ESQL. It is working fine. |
|
Back to top |
|
 |
vikashrk |
Posted: Tue Feb 05, 2019 2:00 pm Post subject: |
|
|
Newbie
Joined: 01 May 2005 Posts: 4
|
Hi Mbxp,
Request to share the PI on how this is done. I have got the same requirement and trying to find the solution.
Appreciate the help.
Thanks.
Ram. |
|
Back to top |
|
 |
|