# ContainerCertificatePathsAnnotation

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerCertificatePathsAnnotation.cs)
- Implements: [IResourceAnnotation](/reference/api/csharp/aspire.hosting/iresourceannotation.md)

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

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class ContainerCertificatePathsAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [ContainerCertificatePathsAnnotation](/reference/api/csharp/aspire.hosting/containercertificatepathsannotation/constructors.md#constructor)

## Properties

- [CustomCertificatesDestination](/reference/api/csharp/aspire.hosting/containercertificatepathsannotation/properties.md#customcertificatesdestination) : `string?` `get; init` -- The destination path in the container under which custom certificates will be placed. If not set, defaults to /usr/lib/ssl/aspire.
- [DefaultCertificateBundles](/reference/api/csharp/aspire.hosting/containercertificatepathsannotation/properties.md#defaultcertificatebundles) : `List<string>` `get; init` -- 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.
- [DefaultCertificateDirectories](/reference/api/csharp/aspire.hosting/containercertificatepathsannotation/properties.md#defaultcertificatedirectories) : `List<string>` `get; init` -- 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.
