EnvelopedCms.Decrypt Method (RecipientInfo, X509Certificate2Collection)
The method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the private key associated with the certificate identified by the specified recipient information and by using the specified certificate collection. The method searches the specified certificate collection and the My certificate store for the proper certificate to use for the decryption.
Assembly: System.Security (in System.Security.dll)
public void Decrypt( RecipientInfo recipientInfo, X509Certificate2Collection extraStore )
- Type: System.Security.Cryptography.Pkcs.RecipientInfo
A RecipientInfo object that represents the recipient information to use for the decryption.
- Type: System.Security.Cryptography.X509Certificates.X509Certificate2Collection
An X509Certificate2Collection collection that represents additional certificates to use for the decryption. The method searches this certificate collection and the My certificate store for the proper certificate to use for the decryption.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)