--- title: "Setting agent certificate duration" slug: "setting-agent-certificate-duration-6" tags: ["Endpoint Security (HX)", "Product Usage"] updated: 2026-09-23T17:24:36Z published: 2026-09-23T17:24:36Z canonical: "docs.trellix.com/setting-agent-certificate-duration-6" --- > ## 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) xAgent 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 0and 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 ``` :