# ContainerCertificatePathsAnnotation Properties

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

An annotation that allows overriding default certificate paths for container resources.

## CustomCertificatesDestination

- Name: `CustomCertificatesDestination`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerCertificatePathsAnnotation.cs)

The destination path in the container under which custom certificates will be placed. If not set, defaults to /usr/lib/ssl/aspire.

```csharp
public string? CustomCertificatesDestination { get; init; }
```

## DefaultCertificateBundles

- Name: `DefaultCertificateBundles`
- Modifiers: `nullable` `get; init`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerCertificatePathsAnnotation.cs)

Paths to default certificate bundle files in the container that should be replaced when the resource's [CertificateTrustScope](/reference/api/csharp/aspire.hosting/certificatetrustscope.md) is set to [CertificateTrustScope.Override](/reference/api/csharp/aspire.hosting/certificatetrustscope/fields.md) or [CertificateTrustScope.System](/reference/api/csharp/aspire.hosting/certificatetrustscope/fields.md). If not set, a set of common default paths for popular Linux distributions will be used.

```csharp
public List<string>? DefaultCertificateBundles { get; init; }
```

## DefaultCertificateDirectories

- Name: `DefaultCertificateDirectories`
- Modifiers: `nullable` `get; init`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerCertificatePathsAnnotation.cs)

Paths to default directories containing individual CA certificates in the container that should be appended when the resource's [CertificateTrustScope](/reference/api/csharp/aspire.hosting/certificatetrustscope.md) is set to [CertificateTrustScope.Append](/reference/api/csharp/aspire.hosting/certificatetrustscope/fields.md). If not set, a set of common default paths for popular Linux distributions will be used.

```csharp
public List<string>? DefaultCertificateDirectories { get; init; }
```
