# EntraIdFileCertificateCredential

- Kind: `class`
- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)
- Inherits: [EntraIdClientCredential](/reference/api/csharp/aspire.hosting.azure.entraid/entraidclientcredential.md)

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

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class EntraIdFileCertificateCredential
    : Aspire.Hosting.Azure.EntraIdClientCredential
{
    // ...
}
```

## Remarks

Maps to `SourceType = "Path"` in Microsoft.Identity.Web configuration. Not recommended for production use.

## Constructors

- [EntraIdFileCertificateCredential](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfilecertificatecredential/constructors.md#constructor)

## Properties

- [FilePath](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfilecertificatecredential/properties.md#filepath) : `string` `get; init` -- Gets the path to the certificate file (e.g., a PFX file).
- [Password](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfilecertificatecredential/properties.md#password) : `ParameterResource?` `get; set` -- Gets or sets the password for the certificate file, if password-protected.
- [SourceType](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfilecertificatecredential/properties.md#sourcetype) : `string` `get` -- Gets the `SourceType` string used in the Microsoft.Identity.Web configuration.
