Class DotNetDevCerts
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Manages the local HTTPS development certificate used by ASP.NET Core.
public sealed record DotNetDevCerts : ExecToolCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<DotNetDevCerts>Inheritance
Implements
Constructors
DotNetDevCerts()
Creates a command with output volume derived from the current logging level.
public DotNetDevCerts()Properties
Check
Checks whether a valid HTTPS development certificate exists without creating one.
public bool Check { get; init; }Property Value
CheckTrustMachineReadable
Checks for a trusted certificate and reports the result as JSON without changing the store.
public bool CheckTrustMachineReadable { get; init; }Property Value
Clean
Removes HTTPS development certificates from the local certificate store.
public bool Clean { get; init; }Property Value
CommandParts
Gets every canonically ordered rendered command fragment.
protected override IReadOnlyList<string?> CommandParts { get; }Property Value
ExportPath
Exports the HTTPS development certificate to this file; the extension determines the default format.
public string? ExportPath { get; init; }Property Value
Format
Selects the exported certificate format, Pfx or Pem.
public string? Format { get; init; }Property Value
Import
Clears other HTTPS development certificates, then imports this certificate into the machine store.
public string? Import { get; init; }Property Value
NoPassword
Exports a certificate without password protection; requires PEM format and cannot be combined with a password.
public bool NoPassword { get; init; }Property Value
Password
Protects the exported certificate with this password; requires an export path.
public string? Password { get; init; }Property Value
Quiet
Suppresses nonessential command output.
public bool Quiet { get; init; }Property Value
Trust
Trusts the selected HTTPS development certificate when supported by the platform.
public bool Trust { get; init; }Property Value
Verbose
Writes diagnostic detail beyond normal command output.
public bool Verbose { get; init; }