Skip to content
Docs Try Aspire

CertificateTrustScope

Enum net10.0
📦 Aspire.Hosting v13.1.2
Defines the scope of custom certificate authorities for a resource. The default scope for most resources is CertificateTrustScope.Append, but some resources may choose to override this default behavior.
namespace Aspire.Hosting.ApplicationModel;
public sealed enum CertificateTrustScope
None = 0
Disable all custom certificate authority configuration for a resource. This indicates that the resource should use its default certificate authority trust behavior without modification.
Append = 1
Append the specified certificate authorities to the default set of trusted CAs for a resource. Not all resources support this mode, in which case custom certificate authorities may not be applied. In that case, consider using Override or System instead. This is the default mode unless otherwise specified.
Override = 2
Replace the default set of trusted CAs for a resource with the specified certificate authorities. This mode indicates that only the provided custom certificate authorities should be considered trusted by the resource.
System = 3
Attempt to configure the resource to trust the default system certificate authorities in addition to any configured custom certificate trust. This mode is useful for resources that don't otherwise allow appending to their default trusted certificate authorities but do allow overriding the set of trusted certificates (e.g. Python, Rust, etc.).