Click or drag to resize
MimeKit

X509CertificateStoreImport(String, String) Method

Imports certificates and private keys from the specified file.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public void Import(
	string fileName,
	string password
)

Parameters

fileName  String
The name of the file to import.
password  String
The password to unlock the file.
Exceptions
ExceptionCondition
ArgumentNullException

fileName is null.

-or-

password is null.

ArgumentExceptionfileName is a zero-length string, contains only white space, or contains one or more invalid characters.
FileNotFoundException The specified file could not be found.
UnauthorizedAccessException The user does not have access to read the specified file.
IOException An error occurred reading the file.
Remarks

Imports certificates and private keys from the specified pkcs12 stream.

See Also