Click or drag to resize
MimeKit

X509CertificateRecord(X509Certificate, AsymmetricKeyParameter) Constructor

Initialize a new instance of the X509CertificateRecord class.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public X509CertificateRecord(
	X509Certificate certificate,
	AsymmetricKeyParameter key
)

Parameters

certificate  X509Certificate
The certificate.
key  AsymmetricKeyParameter
The private key.
Exceptions
ExceptionCondition
ArgumentNullException

certificate is null.

-or-

key is null.

ArgumentExceptionkey is not a private key.
Remarks
Creates a new certificate record with a private key for storing in a IX509CertificateDatabase.
See Also