EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Multiple AS2 Encryption certificates in TEIMemoryCertStorage

Posted: 06/13/2015 05:21:01
by Geoffrey Crombez (Standard support level)
Joined: 01/09/2015
Posts: 4


I have written an AS2 service to send to multiple partners using your software.
I need to send to multiple partners. For the signature we use our private key, so there is only 1 certificate loaded in that store = ok.
But for the encryption, I have multiple certificates loaded in the store (since I have multiple partners). I just link the TEIMemoryCertStorage object to the message:
as2Message.Encryption.CertStorage = _CertStoragePartnerKey;
How does the library recognizes which certificate to pick?

Kind Regards
Posted: 06/13/2015 11:17:41
by Alexander Ionov (Team)

Thank you very much for the question.

The library doesn't pick a certificate. It just encrypts the data for all the certificates available in the storage. I.e. the encrypted message can be decrypted with a private key that belongs to ANY certificate which was in the storage on message encryption.

Best regards,
Alexander Ionov



Topic viewed 381 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!