Click or drag to resize
MimeKit

X509CertificateStoreGetPrivateKey Method

Gets the private key for the specified certificate.

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

Parameters

certificate  X509Certificate
The certificate.

Return Value

AsymmetricKeyParameter
The private key on success; otherwise null.
Remarks
Gets the private key for the specified certificate, if it exists.
See Also