Watch Aspire live streamsDocsTry Aspire

withHttpsDeveloperCertificate

Method
📦 Aspire.Hosting v13.6.0
interface ContainerResource {
// ... omitted for brevity
withHttpsDeveloperCertificate(password?: ParameterResource): IResourceWithEnvironment;
}

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(password?: ParameterResource): IResourceWithEnvironment
passwordParameterResourceoptionalA parameter specifying the password used to encrypt the certificate private key.
IResourceWithEnvironment

Applies to

This method applies to the following types: