This utility does not explicitly decrypt the enveloped message to any recipient in the message. Typically this would involve using CertGetSubjectCertificateFromStore() with the CERT_INFO structure and with the ADDRESSBOOK certificate store as described in CryptMsgOpenToDecode.
This utility uses P/Invoke to CryptoAPI functions:
CAPICOM 2 provides easy access to EnvelopedData message information. However, recipient information is only available if the EnvelopedData.Decrypt method succeeds. The utility provided here does not require any decryption to access the enveloped message recipient information.
Sample output (for 2 recipients)
PKCS #7 - Cryptographic Message Syntax Standard
Michel I. Gallant