Discuss this help topic in SecureBlackbox Forum
EDI: Compose signed AS2/AS3 messages
To create a signed message, the following steps have to be performed before saving the composed message:
Examples:
C#:
// create an AS2 message
TElAS2Message message = new TElAS2Message();
// set other properties
...
// enable the signature
message.Signature.Enabled = true;
// assign signing certificate(s)
message.Signature.CertStorage = signingStorage;
// choose the digest algorithm to be used to calculate data hash
message.Signature.DigestAlgorithm = TSBASSignatureDigestAlgorithm.sdaSHA256;
// set when the message was signed
message.Signature.Time = DateTime.UtcNow;
// load EDI data from the file and save
// the AS2 message to another file
message.Save("mydata.edi", "mymsg.as2m");