> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tinfoil.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Attestation from containers

> Request fresh enclave attestation from inside a container.

> [!WARNING]
>
> Fresh attestation requests are in beta because they use [V3 attestation](https://docs.tinfoil.sh/resources/feature-status.md), which is still being deployed.

Containers can request fresh attestation through `/tinfoil/attestation.sock`, including containers without networking. Set `attestation: true` on a container in `tinfoil-config.yml` to enable the socket; it defaults to `false`.

## Request attestation

Set `NONCE` to the verifier's fresh, random 32-byte challenge, encoded as 64 hexadecimal characters:

```bash theme={"dark"}
curl --unix-socket /tinfoil/attestation.sock \
  "http://localhost/.well-known/tinfoil-attestation?nonce=${NONCE}"
```

The socket serves only attestation `GET` requests. Requests return `503` until attestation is ready.

To authenticate application output, you can also use an [endorsed key](https://docs.tinfoil.sh/containers/attested-keys.md#verify-the-public-key) to sign output.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.