# EntraIdApplicationResource.withCertificateFromFile

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/typescript/aspire.hosting.azure.entraid.md)
- Defined on: [EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Appends a certificate file credential. The file path is on the consuming resource, not the AppHost.

## Definition

```typescript
interface EntraIdApplicationResource {
  // ... omitted for brevity
  withCertificateFromFile(
      filePath: string,
      password?: ParameterResource): EntraIdApplicationResource;
}
```

## Signature

```typescript
withCertificateFromFile(
    filePath: string,
    password?: ParameterResource): EntraIdApplicationResource
```

## Parameters

- `filePath` (`string`)
- `password` (`ParameterResource`) `optional`

## Returns

[EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md) `builder`

## Defined on

- [EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md) -- `handle`
