withHttpsCertificateConfiguration

Method
📦 Aspire.Hosting v17.0.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>The callback to configure the resource to use a certificate key pair.
IResourceWithEnvironment

Applies to

This method applies to the following types: