Skip to content
Docs Try Aspire

IDeveloperCertificateService Properties

Interface Properties 5 members
Service that provides information about developer certificate trust capabilities.
Certificates Section titled Certificates abstract ImmutableList<X509Certificate2>
List of the valid development certificates that can be trusted.
public abstract ImmutableList<X509Certificate2> Certificates { get; }
LatestCertificateIsUntrusted Section titled LatestCertificateIsUntrusted virtual bool
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; }
SupportsContainerTrust Section titled SupportsContainerTrust abstract bool
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; }
TrustCertificate Section titled TrustCertificate abstract bool
Indicates whether the default behavior is to attempt to trust the developer certificate(s) at runtime.
public abstract bool TrustCertificate { get; }
UseForHttps Section titled UseForHttps abstract bool
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; }