Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithHttpsDeveloperCertificate

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEnvironment) WithHttpsDeveloperCertificate(options ...*WithHttpsDeveloperCertificateOptions) ResourceWithEnvironment

Signature

methodWithHttpsDeveloperCertificatebuilder
Indicates that a resource should use the developer certificate key pair for HTTPS endpoints at run time. Currently this indicates use of the ASP.NET Core developer certificate. The developer certificate will only be used when running in local development scenarios; in publish mode resources will use their default certificate configuration.
WithHttpsDeveloperCertificate(options ...*WithHttpsDeveloperCertificateOptions) ResourceWithEnvironment
options...*WithHttpsDeveloperCertificateOptionsOptional settings, described under Options.

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

Password*ParameterResourceA parameter specifying the password used to encrypt the certificate private key.
ResourceWithEnvironment

The resource builder.

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

Applies to

This method applies to the following types: