CmsSigner.PrivateKey Property

Definition

Gets or sets the private key object to use during signing.

C#
public System.Security.Cryptography.AsymmetricAlgorithm? PrivateKey { get; set; }
C#
public System.Security.Cryptography.AsymmetricAlgorithm PrivateKey { get; set; }

Property Value

The private key to use during signing, or null to use the private key associated with the Certificate property.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also