get_PrivateKey()

X509Certificate2::get_PrivateKey() const method

Gets private key associated with certificate.

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

Return Value

Private key object (or nullptr if unset).

See Also