Cms.MakeEnvData Method (String, String, String, Cms.Options)
Create a CMS enveloped-data object for one or more recipients using their x.509 certificates [@deprecated].
Syntax
[C#]
[ObsoleteAttribute("Use an alternative MakeEnvData overload.", false)]
public static int MakeEnvData(
string outputFile,
string inputFile,
string certList,
Cms.Options options
)
[VB.NET]
<ObsoleteAttribute("Use an alternative MakeEnvData overload.", False)> _
Public Shared Function MakeEnvData ( _
outputFile As String, _
inputFile As String, _
certList As String, _
options As Cms.Options _
) As Integer
Parameters
- outputFile
- Output file to be created
- inputFile
- Input data file
- certList
- List of recipient X.509 certificate filename(s), separated by semi-colons (;). Alternatively, specify a single PKCS#7 certificate chain file (.p7c/.p7b).
- options
- Type: Cms.Options
Option flags: set as zero for defaults.
Return Value
Number of successful recipients or a negative
error code.
Remarks
This uses the default key-encryption algorithm rsaEncryption with triple DES des-ede3-cbc for content encryption. It is an error if any specified certificate file in certList is missing or corrupted.
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: CMS_MakeEnvData
[Contents] [Index]