Click or drag to resize
MimeKit

X509CertificateStoreExport(Stream, String) Method

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

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
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.
Exceptions
ExceptionCondition
ArgumentNullException

stream is null.

-or-

password is null.

IOException An error occurred while writing to the stream.
Remarks
Exports the specified stream and password to a pkcs12 encrypted file.
See Also