| X509CertificateStoreGetPrivateKey Method |
Gets the private key for the specified certificate.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public AsymmetricKeyParameter GetPrivateKey(
X509Certificate certificate
)
Parameters
- certificate X509Certificate
- The certificate.
Return Value
AsymmetricKeyParameterThe private key on success; otherwise
null.
Remarks
Gets the private key for the specified certificate, if it exists.
See Also