# AS2 signing and encryption

**URL:** <https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [January 6, 2004, 9:01pm UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055 "2004-01-06T21:01:15Z")\
**Posts on this page:** 10\
**Page:** 2

<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:** [June 24, 2005, 10:36pm UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/21 "2005-06-24T22:36:36Z")

</div>

Hello,  
Well TN with EDIINT is capable of AS2 out of the box but not PGP. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 25, 2005, 2:30am UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/22 "2005-06-25T02:30:30Z")

</div>

Hello Yemi,

Thank you very much for your prompt response!

I’m wondering about my options now - could you enlighten me on how I might architect a solution if I have to use AS2 and PGP? I suppose I have to use PGP before it gets to the EDIINT part… would that be a wM package to encrypt/decrpyt the message before it gets to the EDIINT piece?

Thank You,  
Vijai

---

<div class="post-metadata">

**Author:** ![andre.h.jansen.10091](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@andre.h.jansen.10091](https://techcommunity.softwareag.com/u/andre.h.jansen.10091)\
**Post date:** [June 27, 2005, 7:27pm UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/23 "2005-06-27T19:27:40Z")

</div>

Hi Vijai,

I think you have two options, rebuild the wm.EDIINT:receive service to use PGP or write your own service which receives the PGP encrypted data and then call wm.EDIINT:receive, with the plain text as input.  
In both cases you’re missing a lot of out-of-the box functionality, which you could use if you would use S/MIME instead of PGP.

Andre

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [July 13, 2005, 1:19am UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/24 "2005-07-13T01:19:30Z")

</div>

Hi

I am trying to configure AS2 communications to a Cyclone AS2 server. I have been able to send encrypted data to them but they are unable to send encrypted data to me. I am also unable to sign documents. I have a feeling that it is a symptom of the same problem does anyone have any ideas?

I have received a Verisign cert from the keys that I generated. I am not sure whether I have configured them correctly though.

Regards

---

<div class="post-metadata">

**Author:** ![Aneel\_Murari](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Aneel\_Murari](https://techcommunity.softwareag.com/u/Aneel_Murari)\
**Post date:** [July 27, 2006, 4:49am UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/25 "2006-07-27T04:49:07Z")

</div>

Hi,

I have two IS servers (say A, B). A is at version 6.0.1 and B at 6.5. I am trying to do AS2 communication from A to B. I have defined B as a partner for A and vice versa. I have used the same set of certificates for both A and B. When I send a outbound message from A, I receive “processed/error: decryption-failed” error on B. My detailed error logs has the following error. Can I use the same certificates for both A and B? If yes, has anyone seen this error before ? Any help is appreciated.

=====================================================  
com.wm.app.tn.err.EXMLException: Signing key is not valid java.security.InvalidKeyException Invalid key usage: Certificate cannot be used for signing (key usage must permit ‘digitalSignature’ or ‘nonRepudiation’)  
java.security.InvalidKeyException: Invalid key usage: Certificate cannot be used for signing (key usage must permit ‘digitalSignature’ or ‘nonRepudiation’) at iaik.security.smime.SignedContent.setSigner(Unknown Source) at com.wm.app.tn.mime.SMime.signData(SMime.java:899) at com.wm.app.tn.mime.SMime.createSignedData(SMime.java:852) at wm.tn.mime.createSignedData(mime.java:345) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.i

=======================================================

Thanks,  
Aneel.

---

<div class="post-metadata">

**Author:** ![Aneel\_Murari](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Aneel\_Murari](https://techcommunity.softwareag.com/u/Aneel_Murari)\
**Post date:** [July 27, 2006, 9:16pm UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/26 "2006-07-27T21:16:48Z")

</div>

My outbound message from A is sent signed and encrypted. On further debugging the EDIINT processMsg service on the receiver side, I see that the wm.tn.mime:createMimeData serive is giving signed = “false”. Any ideas why this can happen ? Is there a way for me decode the http message and see if the data I am receiving on B is actually signed or not ??

PLEASE HELP

---

<div class="post-metadata">

**Author:** ![Aneel\_Murari](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Aneel\_Murari](https://techcommunity.softwareag.com/u/Aneel_Murari)\
**Post date:** [July 27, 2006, 11:55pm UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/27 "2006-07-27T23:55:47Z")

</div>

OK…Issue solved. I was missing a public key certificate in my corporate profile on B

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [October 24, 2006, 2:11am UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/28 "2006-10-24T02:11:03Z")

</div>

webMethods 6.1 I am trying to set up AS2 Communication with a trading partner. After reading this forum I tried changing my Encryption Algorithm to RC2 40. I can now see the AS2 header and the encrypted payload. My trading partner uses Cyclone and they get an error in sending the MDN.

1. Is there a different setting needed for the MDN on my side.
2. Should I be able to see an AS2 footer after my encrypted payload
3. My trading partner can see the file and was able to process it. (except for the MDN. However on my side I get a send message error of java.net.SocketExcption: Connection reset

Any information would be helpful

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [October 25, 2006, 12:56am UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/29 "2006-10-25T00:56:11Z")

</div>

You should contact webMethods support regarding this issue. It is possible your server.bat JAVA\_EXE entry is directed to the wrong path.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055/30 "2021-04-02T15:05:03Z")

</div>



[Previous page](https://techcommunity.softwareag.com/t/as2-signing-and-encryption/108055.md?page=1)
