--- title: "Setting agent certificate duration" slug: "setting-agent-certificate-duration-5" tags: ["HX 10.x", "Endpoint Security (HX)", "Product Usage"] updated: 2026-09-10T21:18:41Z published: 2026-09-10T21:18:41Z canonical: "docs.trellix.com/setting-agent-certificate-duration-5" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Setting agent certificate duration To set the duration of Trellix Endpoint Security (HX) Agent certificates: 1. Enable CLI configuration mode. ``` hostname > enable hostname # configure terminal                   ``` 2. Specify the certificate duration, in days: ``` hostname (config) # hx pki agent cert-days                   ``` where `<days>` is the number of days that the agent certificate remains active. Valid values range from 0 and 65535 days. The default is 1825 days (5 years). To set the duration back to the default, use the `no` form of this command: ``` hostname (config) # no hx pki agent cert-days                   ``` 3. Save your changes: ``` hostname (config) # write memory                   ``` :