Skip to content
DocsTry Aspire
DocsTry

withHttpsCertificateConfiguration

Method
📦 Aspire.Hosting v13.5.0
interface ContainerResource {
// ... omitted for brevity
withHttpsCertificateConfiguration(callback: callback): IResourceWithEnvironment;
}

Signature

methodwithHttpsCertificateConfigurationbuilder
Adds a callback that allows configuring the resource to use a specific HTTPS/TLS certificate key pair for server authentication.
withHttpsCertificateConfiguration(callback: (arg: HttpsCertificateConfigurationCallbackAnnotationContext) => Promise<void>): IResourceWithEnvironment
callback(arg: HttpsCertificateConfigurationCallbackAnnotationContext) => Promise<void>
IResourceWithEnvironment

Applies to

This method applies to the following types: