Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCertificateTrustEnvironment

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithArgs) WithCertificateTrustEnvironment(
certificateBundleEnvironmentVariable string,
options ...*WithCertificateTrustEnvironmentOptions,
) ResourceWithArgs

Signature

methodWithCertificateTrustEnvironmentbuilder
Configures environment variables that point to Aspire-managed certificate trust paths.
WithCertificateTrustEnvironment(
certificateBundleEnvironmentVariable string,
options ...*WithCertificateTrustEnvironmentOptions,
) ResourceWithArgs
certificateBundleEnvironmentVariablestringThe environment variable that receives the certificate bundle path.
options...*WithCertificateTrustEnvironmentOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithCertificateTrustEnvironmentOptions argument.

CertificateDirectoriesEnvironmentVariable*stringThe optional environment variable that receives the certificate directories path.
ResourceWithArgs

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: