Skip to content
DocsTry Aspire
DocsTry

IDeveloperCertificateService Properties

InterfaceProperties5 members
Service that provides information about developer certificate trust capabilities.
CertificatesSection titled CertificatesabstractImmutableList<X509Certificate2>
List of the valid development certificates that can be trusted.
public abstract ImmutableList<X509Certificate2> Certificates { get; }
LatestCertificateIsUntrustedSection titled LatestCertificateIsUntrustedvirtualbool
Gets a value indicating whether a newer ASP.NET Core development certificate was detected that is not in the trusted set. This is true when the highest-version/most-recent dev cert is not trusted, even though older trusted certs may exist.
public virtual bool LatestCertificateIsUntrusted { get; }
SupportsContainerTrustSection titled SupportsContainerTrustabstractbool
Indicates whether the available developer certificates support container trust scenarios. If true, the developer certificate(s) SAN configuration supports common container domains for accessing host services such as "host.docker.internal" and "host.containers.internal".
public abstract bool SupportsContainerTrust { get; }
TrustCertificateSection titled TrustCertificateabstractbool
Indicates whether the default behavior is to attempt to trust the developer certificate(s) at runtime.
public abstract bool TrustCertificate { get; }
UseForHttpsSection titled UseForHttpsabstractbool
Indicates whether the default behavior is to attempt to use a developer certificate for server authentication (i.e. HTTPS/TLS termination).
public abstract bool UseForHttps { get; }