# EDIINT Triple DES problem

**URL:** <https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [November 7, 2005, 8:11pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106 "2005-11-07T20:11:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 7, 2005, 8:11pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/1 "2005-11-07T20:11:19Z")

</div>

Hi,

I’m using EDIINT to send the EDI to the Trading Partner.when i use DES encryption algorithm, everything seems to work fine.but the issue is, when i use TripleDES algorithm, there seems to be some problem.i dont see the encrypted payload in the ediintdata entry of the TN Analysis screen.  
Is this something to do with any configuration or am i missing something?i’m stuck with this issue and would really appreciate if someone can chime in.

ramesh.

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 7, 2005, 8:22pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/2 "2005-11-07T20:22:11Z")

</div>

Hi,

One more thing is, i have generated the certificate using OPENSSL and used “genrsa -des3 -out \<private\>.pem 2048” command to generate the private key and converted it to .der format.is this something to look into?

ramesh.

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 7, 2005, 10:10pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/3 "2005-11-07T22:10:57Z")

</div>

Any thoughts???

---

<div class="post-metadata">

**Author:** ![Yemi\_Bedu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@Yemi\_Bedu](https://techcommunity.softwareag.com/u/Yemi_Bedu)\
**Post date:** [November 7, 2005, 11:38pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/4 "2005-11-07T23:38:27Z")

</div>

Hello,

> [@](#):
>
> We use TripleDES for all our partners selection tabs. I currently use openssl openssl-0.9.7c to do the generation of private key and certificate. I use a good number of windows batch routines for generation and conversion.
> 
> I use the following to make the private key:  
> openssl genrsa -out %1 %2
> 
> I use the following to make the certificate (public key):  
> openssl req -verbose -config openssl.cnf -new -x509 -sha1 -days %3 -key %1 -out %2
> 
> For converting private key PEM to DER I use the following:  
> openssl rsa -inform pem -in %1 -outform der -out %2
> 
> For converting certificate (public key) PEM to DER I use the following:  
> openssl rsa -inform pem -pubin -in %1 -outform der -out %2
> 
> %var names should be easy to guess. Please include the extension with these names. Remeber that your CA will not be automatically trusted.
> 
> I would also suggest you look for the lateset openssl version, get the source version, and create your scripts for the processes. Please share your feedback results. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![Yemi\_Bedu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@Yemi\_Bedu](https://techcommunity.softwareag.com/u/Yemi_Bedu)\
**Post date:** [November 8, 2005, 5:02am UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/5 "2005-11-08T05:02:51Z")

</div>

Hello,

> [@](#):
>
> Please make the private key without the -des3 option. I think that is a problem. I don’t think that you can supply the passphrase for the private key in Trading Networks.  
> [openssl genrsa](http://www.openssl.org/docs/apps/genrsa.html)
> 
> Please use the -pubin option when converting the certificate. By default it assumes a private key and you want it to assume public.
> 
> [openssl rsa](http://www.openssl.org/docs/apps/rsa.html)
> 
> The pkcs12 line should be fine. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 8, 2005, 7:22pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/6 "2005-11-08T19:22:38Z")

</div>

Yemi,

As per your instructions, i tried to generate the keys.  
1.genrsa -out testPrivate 2048  
2.req -verbose -config openssl.cnf -new -x509 -sha1 -days 1095 -key testPrivate -out testCert  
3.rsa -inform pem -in testPrivate -outform der -out testPrivate.der  
4.rsa -inform pem -pubin -in testCert -outform der -out testCert.der

error during converting certificate(4th step)  
unable to load Public Key  
2100:error:0906D06C:PEM routines:PEM\_read\_bio:no start line:.\crypto\pem\pem\_lib  
.c:644:Expecting: PUBLIC KEY  
error in rsa

Can you tell me if i’m wrong somewhere.

Thanks  
ramesh.

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 8, 2005, 7:42pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/7 "2005-11-08T19:42:50Z")

</div>

Yemi,

I tried using “x509 -in testCert -inform PEM -out testCert.der -outform DER” to convert certificate to DER format.

I’ll let you know once my testing is done.

ramesh.

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 8, 2005, 10:09pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/8 "2005-11-08T22:09:51Z")

</div>

Yemi,

The same problem repeats.if i use DES, it is working fine but when i change the encryption algorithm to TripleDES, it fails.i mean, the ediintdata entry in the TN Analysis screen shows only the header info but not the payload.when i use DES option, i can see the encrypted data under ediintdata.  
i’m attaching the screenshot.

ramesh.

![](http://www.wmusers.com/wmusers/icons/attachment_icon.gif)  
[EDIINT\_ERR.doc](http://www.wmusers.com/wmusers/messages/117/EDIINT_ERR-80456.doc) (68.1 k)

---

<div class="post-metadata">

**Author:** ![Yemi\_Bedu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@Yemi\_Bedu](https://techcommunity.softwareag.com/u/Yemi_Bedu)\
**Post date:** [November 9, 2005, 11:16pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/9 "2005-11-09T23:16:32Z")

</div>

Hello,

> [@](#):
>
> For your first post since my last, I would like to apologize. You do “not” need the -pubin option. Actually, can’t use it as that is why you see your error. That option is your if you had converted your pem private key to a public key and what the pem in der format. I should also mention that I am somewhat wrong in making the public key seem equal to the certificate. If you look at the pem in notepad or vi you will see they start with either “begin public key” or “begin certificate”. That was the hint in the error you gave me.
> 
> I think you can use the x509 just as you would the rsa. I think there was something not showing for me and is why I use the rsa. It may have been that the x509 was doing to much and rsa was doing the same with less extra options or something like that.
> 
> You should make this change and try your TN setup with TripleDES again. Sorry for any current troubles. I saw the screen shot, yes there is nothing there. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 10, 2005, 12:06am UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/10 "2005-11-10T00:06:17Z")

</div>

Yemi,

Even after using x509 command to convert the certificate to DER format, i cant see the encrypted data under the ediintdata entry.  
“You should make this change and try your TN setup with TripleDES again”--------Can you tell me what changes are you pointing to?

ramesh.

---

<div class="post-metadata">

**Author:** ![Yemi\_Bedu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@Yemi\_Bedu](https://techcommunity.softwareag.com/u/Yemi_Bedu)\
**Post date:** [November 10, 2005, 1:46am UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/11 "2005-11-10T01:46:28Z")

</div>

Hello,

> [@](#):
>
> I was thinking of three different things while typing. It should read better as, “You should change the DES to TripleDES in TN and try this again”. Each paragraph was suppose to line up with each of your posts. And like I said, I don’t use the x509 because I was getting some weird error with it and TN. I just use the rsa to do the same thing. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![Yemi\_Bedu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@Yemi\_Bedu](https://techcommunity.softwareag.com/u/Yemi_Bedu)\
**Post date:** [November 10, 2005, 1:49am UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/12 "2005-11-10T01:49:21Z")

</div>

Hello,

> [@](#):
>
> I think if you try all those steps that I provided, excluding the pubin error stuff, you should be able to work with TN have the TripleDES selection for your partners. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 10, 2005, 2:17am UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/13 "2005-11-10T02:17:22Z")

</div>

Yemi,

As per your instructions, i tried to generate the keys.  
1.genrsa -out testPrivate 2048  
2.req -verbose -config openssl.cnf -new -x509 -sha1 -days 1095 -key testPrivate -out testCert  
3.rsa -inform pem -in testPrivate -outform der -out testPrivate.der  
4.rsa -inform pem -in testCert -outform der -out testCert.der(tried without -pubin option, but getting an expecting Private Key error)

I would really appreciate if you can tell me the command for converting certificate to der format without the -pubin option.  
tried using x509 command, but that doesn’t solve the problem.

ramesh.

---

<div class="post-metadata">

**Author:** ![Yemi\_Bedu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@Yemi\_Bedu](https://techcommunity.softwareag.com/u/Yemi_Bedu)\
**Post date:** [November 10, 2005, 3:13am UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/14 "2005-11-10T03:13:07Z")

</div>

Hello,

> [@](#):
>
> Step four seems to be the downfall of all my help. I kept mixing up the use between this and the x509 call. I decided not to rush anymore and actually look at what I was referencing. So when I am looking at my line for the certificate change from pem to der I used:  
> openssl x509 -inform pem -outform der -in %1 -out %2
> 
> I have %1 = pc.pem and %2 = pc.der set for the parameters. I think it has been that I was telling you slightly different things when you had certain things set that were not compatible. We should try to change 1 thing at a time and test it. You pretty much had the right syntax a couple of posts ago. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 10, 2005, 3:21am UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/15 "2005-11-10T03:21:50Z")

</div>

Yemi,

I used x509 command and was able to convert the certificate to der format, and changed the encryption algorithm to TripleDES in TN, which doesn’t solve the issue.  
“And like I said, I don’t use the x509 because I was getting some weird error with it and TN. I just use the rsa to do the same thing.”------can you tell me the rsa command you have used to do the same thing, as i was getting some errors while trying to do the same thing i.e without the -pubin option.

ramesh.

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 10, 2005, 9:31pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/16 "2005-11-10T21:31:26Z")

</div>

Yemi,

The issue was nothing to do with generating the keys or certificates, but it was due to the security policy jars of the jvm.replaced them with the correct jars and it worked.

Thanks for your time.  
ramesh.

---

<div class="post-metadata">

**Author:** ![Yemi\_Bedu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@Yemi\_Bedu](https://techcommunity.softwareag.com/u/Yemi_Bedu)\
**Post date:** [November 10, 2005, 9:39pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/17 "2005-11-10T21:39:42Z")

</div>

Hello,

> [@](#):
>
> That quote is a couple of posts ago. I was wrong for the current situation. I was crossing my issues and use of the commands. My last two posts should have clarified the faults of my suggestions.
> 
> What jvm vendor and version are you using. I am using IS/TN 6.0.1 on Windows 2003 with the supplied 1.3.0 ibm jvm. I have applied no special security settings on the jars. Thank you. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [November 10, 2005, 9:53pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/18 "2005-11-10T21:53:07Z")

</div>

Yemi,

We are using 1.4.2\_08 from Sun with IS/TN 6.1 on Windows 2003.

ramesh.

---

<div class="post-metadata">

**Author:** ![vbalakrishna](https://avatars.discourse-cdn.com/v4/letter/v/8edcca/32.png) [@vbalakrishna](https://techcommunity.softwareag.com/u/vbalakrishna)\
**Post date:** [September 11, 2008, 5:53pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/19 "2008-09-11T17:53:59Z")

</div>

Ramesh,

We are facing the exact same issue as you. Could you let us know where we can find the correct version of the jars for our jvm? We are using IS/TN 6.5\_SP3 with JVM 1.5 and Red Hat Linux 4.

Thanks,  
Vandana.

---

<div class="post-metadata">

**Author:** ![Naveen\_Kenche](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Naveen\_Kenche](https://techcommunity.softwareag.com/u/Naveen_Kenche)\
**Post date:** [September 17, 2008, 4:47pm UTC](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106/20 "2008-09-17T16:47:33Z")

</div>

Hi Ramesh,

Going through the email looks like you have managed to configure the keys for EDIINT. We are trying to configure the security tab for a partner profile using the private key, but not able to. Could you guide us the steps involved in configuring the security tab. Our requirement is simple.

Encrypt/Decrypt EDI data over HTTP connection. Please be aware that we do not want HTTPS.

Fyi, EDIINT AS2 work fine with plain EDI data. Now would like to test with data encryption.

Your help is much appreciated.

Thanks & REgards  
KN

[Next page](https://techcommunity.softwareag.com/t/ediint-triple-des-problem/107106.md?page=2)
