# CertificateAuthorityCollection

- 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/CertificateAuthorityCollectionResource.cs)
- Inherits: [Resource](/reference/api/csharp/aspire.hosting/resource.md)

Represents a collection of certificate authorities within the application model.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class CertificateAuthorityCollection
    : Aspire.Hosting.ApplicationModel.Resource
{
    // ...
}
```

## Remarks

This class implements [IResourceWithoutLifetime](/reference/api/csharp/aspire.hosting/iresourcewithoutlifetime.md) and provides access to the name and annotations associated with the certificate authority collection.

## Constructors

- [CertificateAuthorityCollection(string)](/reference/api/csharp/aspire.hosting/certificateauthoritycollection/constructors.md#constructor-string) -- Initializes a new instance of the [CertificateAuthorityCollection](/reference/api/csharp/aspire.hosting/certificateauthoritycollection.md) class with the specified name.

## Properties

- [Certificates](/reference/api/csharp/aspire.hosting/certificateauthoritycollection/properties.md#certificates) : `X509Certificate2Collection` `get` -- Gets the `X509Certificates.X509Certificate2Collection` of certificates for this resource.
