# EntraIdFileCertificateCredential Properties

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

A certificate credential from a file on disk for an Entra ID application.

<a id="filepath"></a>

## FilePath

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

Gets the path to the certificate file (e.g., a PFX file).

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

<a id="password"></a>

## Password

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

Gets or sets the password for the certificate file, if password-protected.

```csharp
public ParameterResource? Password { get; set; }
```

## Remarks

This is a `ApplicationModel.ParameterResource` rather than a `String` so the value flows through Aspire's parameter pipeline and is redacted in logs and the dashboard like any other secret. The parameter must be created with `secret: true`.

<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#L1440)

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

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