CertificateManager.SelfSignedOptions.ValidDays property

The number of days the certificate will be valid.

public int ValidDays { get; set; }

See Also