# EntraIdStoreCertificateCredential Properties

- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Type: [EntraIdStoreCertificateCredential](/reference/api/csharp/aspire.hosting.azure.entraid/entraidstorecertificatecredential.md)
- Kind: `Properties`
- Members: `4`

A certificate credential from the certificate store for an Entra ID application.

<a id="distinguishedname"></a>

## DistinguishedName

- Name: `DistinguishedName`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets the certificate distinguished name (e.g., `"CN=MyCert"`).

```csharp
public string? DistinguishedName { get; set; }
```

<a id="sourcetype"></a>

## SourceType

- Name: `SourceType`
- Modifiers: `override` `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L1386-L1394)

Gets the `SourceType` string used in the Microsoft.Identity.Web configuration.

```csharp
public override string SourceType { get; }
```

## Exceptions

- `InvalidOperationException` -- Thrown when neither or both of [EntraIdStoreCertificateCredential.Thumbprint](/reference/api/csharp/aspire.hosting.azure.entraid/entraidstorecertificatecredential/properties.md#thumbprint) and [EntraIdStoreCertificateCredential.DistinguishedName](/reference/api/csharp/aspire.hosting.azure.entraid/entraidstorecertificatecredential/properties.md#distinguishedname) are set.

<a id="storepath"></a>

## StorePath

- Name: `StorePath`
- Modifiers: `get; init`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets the certificate store path (e.g., `"CurrentUser/My"` or `"LocalMachine/My"`).

```csharp
public string StorePath { get; init; }
```

<a id="thumbprint"></a>

## Thumbprint

- Name: `Thumbprint`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets the certificate thumbprint.

```csharp
public string? Thumbprint { get; set; }
```
