X509CertificateStoreExport(Stream, String) Method

Exports the specified stream and password to a pkcs12 encrypted file.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public void Export(
	Stream stream,
	string password
)

Parameters

stream  Stream
The output stream.
password  String
The password to use to lock the private keys.

Remarks

Exports the specified stream and password to a pkcs12 encrypted file.

Exceptions

ArgumentNullException

stream is .

-or-

password is .

IOException An error occurred while writing to the stream.

See Also