# HttpsCertificateExecutionConfigurationContext Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [HttpsCertificateExecutionConfigurationContext](/reference/api/csharp/aspire.hosting/httpscertificateexecutionconfigurationcontext.md)
- Kind: `Properties`
- Members: `3`

Configuration context for server authentication certificate configuration.

## CertificatePath

- Name: `CertificatePath`
- Modifiers: `get; init`
- Returns: [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsCertificateExecutionConfigurationGatherer.cs)

Expression that will resolve to the path of the server authentication certificate in PEM format. For containers this will be a path inside the container.

```csharp
public ReferenceExpression CertificatePath { get; init; }
```

## KeyPath

- Name: `KeyPath`
- Modifiers: `get; init`
- Returns: [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsCertificateExecutionConfigurationGatherer.cs)

Expression that will resolve to the path of the server authentication certificate key in PEM format. For containers this will be a path inside the container.

```csharp
public ReferenceExpression KeyPath { get; init; }
```

## PfxPath

- Name: `PfxPath`
- Modifiers: `get; init`
- Returns: [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsCertificateExecutionConfigurationGatherer.cs)

Expression that will resolve to the path of the server authentication certificate in PFX format. For containers this will be a path inside the container.

```csharp
public ReferenceExpression PfxPath { get; init; }
```
