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