IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

EDIINT Triple DES problem

webMethods Community Member

webMethods Community Member11/07/05 05:11 PM

  • 1.  EDIINT Triple DES problem

    Posted 11/07/05 03:11 PM

    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.


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: EDIINT Triple DES problem

    Posted 11/07/05 03:22 PM

    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.


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: EDIINT Triple DES problem

    Posted 11/07/05 05:11 PM


  • 4.  RE: EDIINT Triple DES problem

    Posted 11/07/05 06:38 PM

    Hello,

    Yemi Bedu


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: EDIINT Triple DES problem

    Posted 11/08/05 12:03 AM

    Hello,

    Yemi Bedu


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 6.  RE: EDIINT Triple DES problem

    Posted 11/08/05 02:23 PM

    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.


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 7.  RE: EDIINT Triple DES problem

    Posted 11/08/05 02:43 PM

    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.


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 8.  RE: EDIINT Triple DES problem

    Posted 11/08/05 05:10 PM

    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.


    EDIINT_ERR.doc (68.1 k)


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 9.  RE: EDIINT Triple DES problem

    Posted 11/09/05 06:17 PM

    Hello,

    Yemi Bedu


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 10.  RE: EDIINT Triple DES problem

    Posted 11/09/05 07:06 PM

    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.


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 11.  RE: EDIINT Triple DES problem

    Posted 11/09/05 08:46 PM

    Hello,

    Yemi Bedu


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 12.  RE: EDIINT Triple DES problem

    Posted 11/09/05 08:49 PM

    Hello,

    Yemi Bedu


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 13.  RE: EDIINT Triple DES problem

    Posted 11/09/05 09:17 PM

    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.


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 14.  RE: EDIINT Triple DES problem

    Posted 11/09/05 10:13 PM

    Hello,

    Yemi Bedu


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 15.  RE: EDIINT Triple DES problem

    Posted 11/09/05 10:22 PM

    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.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 16.  RE: EDIINT Triple DES problem

    Posted 11/10/05 04:31 PM

    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.


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 17.  RE: EDIINT Triple DES problem

    Posted 11/10/05 04:40 PM

    Hello,

    Yemi Bedu


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 18.  RE: EDIINT Triple DES problem

    Posted 11/10/05 04:53 PM

    Yemi,

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

    ramesh.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 19.  RE: EDIINT Triple DES problem

    Posted 09/11/08 01:54 PM

    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.


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 20.  RE: EDIINT Triple DES problem

    Posted 09/17/08 12:48 PM

    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


    #edi
    #Integration-Server-and-ESB
    #webMethods