X509Certificate2.GetECDiffieHellmanPublicKey Method

Definition

Gets the ECDiffieHellman public key from this certificate.

C#
public System.Security.Cryptography.ECDiffieHellman? GetECDiffieHellmanPublicKey();

Returns

The public key, or null if this certificate does not have an ECDiffieHellman public key.

Exceptions

The handle is invalid.

Applies to

Produkt Verzie
.NET 6, 7, 8, 9, 10