# HttpsCertificateConfigurationCallbackAnnotationContext

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.5.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/e076d8e427cb3afb528dbd605acd74c3aea69f94)

Context provided to a `HttpsCertificateConfigurationCallbackAnnotation` callback.

## Definition

```typescript
interface HttpsCertificateConfigurationCallbackAnnotationContext {
  readonly arguments: CommandLineArgsEditor;
  readonly cancellationToken: cancellationToken;
  readonly certificatePath: ReferenceExpression;
  readonly certificateWithKeyPath: ReferenceExpression;
  readonly environment: EnvironmentEditor;
  readonly executionContext: DistributedApplicationExecutionContext;
  readonly keyPath: ReferenceExpression;
  readonly pfxPath: ReferenceExpression;
  readonly resource: IResource;
}
```

## Properties

- `arguments`: [CommandLineArgsEditor](/reference/api/typescript/aspire.hosting/commandlineargseditor.md) `get` -- Gets the editor used to manipulate the command-line arguments in polyglot callbacks.
- `cancellationToken`: `cancellationToken` `get` -- Gets the `CancellationToken` that can be used to cancel the operation.
- `certificatePath`: [ReferenceExpression](/reference/api/typescript/aspire.hosting/referenceexpression.md) `get` -- A value provider that will resolve to a path to the certificate file.
- `certificateWithKeyPath`: [ReferenceExpression](/reference/api/typescript/aspire.hosting/referenceexpression.md) `get` -- A value provider that will resolve to a path to the certificate and key concatenated together in PEM format.
- `environment`: [EnvironmentEditor](/reference/api/typescript/aspire.hosting/environmenteditor.md) `get` -- Gets the editor used to set environment variables in polyglot callbacks.
- `executionContext`: [DistributedApplicationExecutionContext](/reference/api/typescript/aspire.hosting/distributedapplicationexecutioncontext.md) `get` -- Gets the `DistributedApplicationExecutionContext` for this session.
- `keyPath`: [ReferenceExpression](/reference/api/typescript/aspire.hosting/referenceexpression.md) `get` -- A value provider that will resolve to a path to the private key for the certificate.
- `pfxPath`: [ReferenceExpression](/reference/api/typescript/aspire.hosting/referenceexpression.md) `get` -- A value provider that will resolve to a path to a PFX file for the key pair.
- `resource`: [IResource](/reference/api/typescript/aspire.hosting/iresource.md) `get` -- Gets the resource to which the annotation is applied.
