CertificateManager.SelfSignedOptions constructor

Options for creating a self-signed certificate.

public SelfSignedOptions(IEnumerable<string> DnsNames, KeyType KeyType = KeyType.Rsa, 
    int KeyLength = 2048, IEnumerable<KeyPurposeID>? Purposes = null, int ValidDays = 365, 
    bool Ephemeral = false, bool Exportable = false)
parameter description
DnsNames The DNS names to include in the certificate’s Subject Alternative Name (SAN) extension.
KeyType The type of cryptographic key to use (RSA or ECDSA).
KeyLength The length of the cryptographic key in bits.
Purposes The key purposes (Extended Key Usage) for the certificate.
ValidDays The number of days the certificate will be valid.
Ephemeral If true, the certificate will not be stored in the Windows certificate store.
Exportable If true, the private key can be exported from the certificate.

Remarks

This record is used to specify options for creating a self-signed certificate.

See Also