SelfSignedOptions record

Options for creating a self-signed certificate.

public record SelfSignedOptions

Public Members

name description
SelfSignedOptions(…) Options for creating a self-signed certificate.
Development { get; set; } If true, creates a development bundle consisting of a CA root certificate and an issued leaf certificate.
DnsNames { get; set; } The DNS names to include in the certificate’s Subject Alternative Name (SAN) extension. When Development is true and this value is null, localhost loopback defaults are used for the leaf certificate.
Ephemeral { get; set; } If true, the certificate will not be stored in the Windows certificate store.
Exportable { get; set; } If true, the private key can be exported from the certificate.
IsCertificateAuthority { get; set; } If true, emits a CA certificate suitable for issuing child certificates.
IssuerCertificate { get; set; } Optional issuer certificate used to sign the generated certificate. The issuer must contain a private key and be a CA certificate.
KeyLength { get; set; } The length of the cryptographic key in bits.
KeyType { get; set; } The type of cryptographic key to use (RSA or ECDSA).
KeyUsageFlags { get; set; } The X.509 Key Usage flags to apply to the certificate. Null or None uses the default flags for the selected key type.
LeafValidDays { get; set; } The number of days the generated development leaf certificate is valid.
Purposes { get; set; } The key purposes (Extended Key Usage) for the certificate.
RootCertificate { get; set; } Optional development root certificate used to sign the generated development leaf certificate.
RootName { get; set; } The common name to use when creating a new development root certificate.
RootValidDays { get; set; } The number of days a generated development root certificate is valid.
TrustRoot { get; set; } When true on Windows, adds the effective development root certificate to the CurrentUser Root store.
ValidDays { get; set; } The number of days the certificate will be valid.

Remarks

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

See Also