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

AS2 MDN error (too much data for RSA block)..any inputs?

  • 1.  AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/15/13 07:05 PM

    Hello Gurus,

    Env:IS 712
    EDIINT Module:6.5

    I am facing this following AS2 MDN error for my EDIINT send request with one specific partner(they use self-signed certificate)

    Received EDIINT MDN but failed:

    has been [processed/Error: authentication-failed].
    Authentication Failure while decoding message. The exception is [java.security.SignatureException: too much data for RSA block]

    Both sides certs are in place partner security tab (sign,decrypt,verify) etc…and all the certs serial numbers match.

    Never came across this error in my EDIINT experience…

    P.S:I have googled and Empowered also with no luck.

    Has any one dealt with the above any thoughts on how to resolve it?

    Please advise:

    TIA,
    RMG


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 2.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/16/13 12:36 PM

    I guess it’s the encryption Algorithm mismatch.
    If you are using TripleDES, DES etc for encryption, and the client is expecting RSA ecrypted data, it will generate this error.
    Check if your client’s system is configured to use RSA.
    HTH,


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 3.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/16/13 12:47 PM

    Thanks…They mentioned in the docs as Encryption Algorithm: RC2 128

    So now I look back on my side default to Triple DES and now I changed it to use RC2 128 and tried AS2 again.

    Still no luck :frowning:

    The exception is [java.security.SignatureException: too much data for RSA block]


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 4.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/16/13 01:09 PM

    RC2 is regarded as unsafe algorithm.
    Can you ask your client to change to Triple DES.

    My guess is that they are actually configured to used something else, not RC2 128 as they claimed


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/16/13 02:39 PM

    OK I will check that with TP and post back:

    Thanks so far!
    RMG


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/16/13 04:42 PM

    TP confirmed he changed it to RC2 128 now and still no luck same error persists.

    The exception is [java.security.SignatureException: too much data for RSA block]

    Any more inputs?


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/16/13 05:21 PM

    read some posts on web, seems there is a length limit on the data that can be encrypted by this algorithm.
    You can either try to test with a really small payload,
    or switch to use: Triple DES, it doesn’t have length limit.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/16/13 05:29 PM

    It seems we initially both sides has TripleDES and it should have work.

    Tried with a smaller payload it didn’t work with RC2 128.

    OK now I will ask TP to confirm TripleDES again on both sides and try it (never came across issue with TripleDES except with this particular TP :smiley: )

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 9.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/17/13 01:01 PM

    No luck with this error resolution so far even with TripleDES on both sides on the profile. :frowning:

    Any more ideas please?

    HTH
    RMG


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 10.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/17/13 01:36 PM

    when initialize a cipher, there are another two parameters besides algorithm: Mode and Padding
    There are default values for the Java platform + security lib used.
    The error indicates either the Mode or Padding (most likely) are not matching between two systems. They may have different default values, or one system is explicitly initialized with certain value that the other side doesn’t use.
    You may want to open a ticket with SAG for quick resolution. Your TP may also open ticket with their vendor to find the detail too. This is hard to figure out.


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 11.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/17/13 02:24 PM

    OK seems now its a bottle neck for a quick resolution.

    I opened a ticket with SAG support.

    Thanks so far!


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: AS2 MDN error (too much data for RSA block)..any inputs?

    Posted 10/21/13 05:49 PM

    Just to update on this.

    AS2 thing resolved it turns our some mismatch with our pub key cert and after reloading on the TP side everything went well.

    Thanks Tong Wang!

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport