docs/documentation/platform/pki/guides/applications/infisical-agent.mdx
Automatically request, persist, and renew certificates on a server using the Infisical Agent.
# Linux (Debian/Ubuntu)
curl -1sLf 'https://artifacts.infisical.com/setup.deb.sh' | sudo -E bash
sudo apt-get install infisical
```
```yaml
version: v1
infisical:
address: "https://app.infisical.com"
auth:
type: "universal-auth"
config:
client-id: "<your-client-id>"
client-secret: "<your-client-secret>"
certificates:
- application-name: "my-first-app"
profile-name: "web-servers"
attributes:
common-name: "api.example.com"
ttl: "90d"
lifecycle:
renew-before-expiry: "14d"
file-output:
private-key:
path: "/etc/ssl/private/api.key"
permission: "0600"
certificate:
path: "/etc/ssl/certs/api.crt"
permission: "0644"
post-hooks:
on-renewal:
command: "systemctl reload nginx"
```
| Field | Description |
|-------|-------------|
| `application-name` | The Application containing your certificate profile |
| `profile-name` | The certificate profile to use for issuance |
The agent will: