| | | 1 | | using System.Security.Cryptography.X509Certificates; |
| | | 2 | | |
| | | 3 | | namespace Kestrun.Certificates; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Options for creating a development certificate bundle. |
| | | 7 | | /// </summary> |
| | | 8 | | /// <param name="DnsNames">The DNS names and IP SAN values to include in the development leaf certificate. When null, lo |
| | | 9 | | /// <param name="RootCertificate">An optional CA root certificate used to sign the development leaf certificate.</param> |
| | | 10 | | /// <param name="RootName">The common name to use when creating a new development root certificate.</param> |
| | | 11 | | /// <param name="RootValidDays">The number of days a generated development root certificate is valid.</param> |
| | | 12 | | /// <param name="LeafValidDays">The number of days the development leaf certificate is valid.</param> |
| | | 13 | | /// <param name="TrustRoot">When true on Windows, adds the effective root certificate to the CurrentUser Root store.</pa |
| | | 14 | | /// <param name="Exportable">When true, generated certificates use exportable private keys.</param> |
| | 3 | 15 | | public record DevelopmentCertificateOptions( |
| | 3 | 16 | | IEnumerable<string>? DnsNames = null, |
| | 3 | 17 | | X509Certificate2? RootCertificate = null, |
| | 2 | 18 | | string RootName = "Kestrun Development Root CA", |
| | 5 | 19 | | int RootValidDays = 3650, |
| | 6 | 20 | | int LeafValidDays = 30, |
| | 3 | 21 | | bool TrustRoot = false, |
| | 8 | 22 | | bool Exportable = false); |