System::Security::Cryptography::X509Certificates::X509Certificate2::set_PrivateKey method

X509Certificate2::set_PrivateKey method

Sets or clears private key associated with certificate.

void System::Security::Cryptography::X509Certificates::X509Certificate2::set_PrivateKey(const SharedPtr<AsymmetricAlgorithm> &value)
ParameterTypeDescription
valueconst SharedPtr<AsymmetricAlgorithm>&Private key object (or nullptr to unset).

See Also