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

# Subir certificado digital

> Sube el certificado .pfx para firmar DTEs.

**Autenticación:** Bearer JWT

**Headers:** `Content-Type: multipart/form-data`

| Campo         | Tipo   | Req. | Descripción              |
| ------------- | ------ | ---- | ------------------------ |
| `empresa_id`  | string | Sí   | ID de la empresa         |
| `certificado` | file   | Sí   | Archivo `.pfx`           |
| `password`    | string | Sí   | Password del certificado |

```json Response 200 theme={null}
{
  "message": "Certificado cargado correctamente",
  "vencimiento": "2027-03-15T00:00:00Z",
  "titular": "JUAN PEREZ"
}
```

| Código | Descripción                                |
| ------ | ------------------------------------------ |
| `400`  | Certificado inválido o password incorrecta |
| `404`  | Empresa no encontrada                      |
