System::Security::Cryptography::X509Certificates::X509Certificate2::get_PrivateKey method

X509Certificate2::get_PrivateKey method

Gets private key associated with certificate.

SharedPtr<AsymmetricAlgorithm> System::Security::Cryptography::X509Certificates::X509Certificate2::get_PrivateKey() const

ReturnValue

Private key object (or nullptr if unset).

See Also