# WithCertificateThumbprint

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/go/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`
- Defined on: [`EntraIdApplicationResource`](/reference/api/go/aspire.hosting.azure.entraid/entraidapplicationresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Adds a certificate credential from the certificate store by thumbprint.

## Definition

```go
func (EntraIdApplicationResource) WithCertificateThumbprint(
    storePath string,
    thumbprint string,
) EntraIdApplicationResource
```

## Parameters

- `storePath` (`string`) -- The certificate store path (e.g., `"CurrentUser/My"`).
- `thumbprint` (`string`) -- The certificate thumbprint.

## Returns

[`EntraIdApplicationResource`](/reference/api/go/aspire.hosting.azure.entraid/entraidapplicationresource.md) -- The resource builder for chaining.

Returns a handle; failures surface later via `Err()`.

## Applies to

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