X509Certificate StoreExport(String, 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
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public void Export(
string fileName,
string password
)Parameters
Remarks
Exports the specified stream and password to a pkcs12 encrypted file.
Exceptions
| ArgumentNullException |
fileName is . -or- password is . |
| ArgumentException | fileName is a zero-length string, contains only white space, or contains one or more invalid characters. |
| PathTooLongException | The specified path exceeds the maximum allowed path length of the system. |
| DirectoryNotFoundException | A directory in the specified path does not exist. |
| UnauthorizedAccessException | The user does not have access to create the specified file. |
| IOException | An error occurred while writing to the stream. |