--- title: "Downloading a certificate using the CLI" slug: "downloading-a-certificate-using-the-cli-1" tags: ["File Protect (FX)", "Malware Analysis (AX)", "IAM", "Email Security - Cloud", "Network Security (NX)", "Email Security — Server", "Central Management System", "Helix Enterprise", "Endpoint Security (HX)", "Product Usage", "Install and Get Started", "Helix", "Intelligent Virtual Execution "] updated: 2026-09-01T19:03:07Z published: 2026-09-01T19:03:07Z canonical: "docs.trellix.com/downloading-a-certificate-using-the-cli-1" --- > ## 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. # Downloading a certificate using the CLI Use the commands in this section to download the public and private keys for a certificate. ### Important The private key is an optional parameter, but it must be downloaded to activate the certificate for an application that requires a private key. To download a certificate: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Specify the name for the certificate and download it: ``` hostname (config) # crypto certificate name fetch public-cert-url [private-key-url ] [comment ""] ``` where: - `URL `is the direct path to the certificate or private key file. - `comment `is a description of the certificate. It must be enclosed in double quotation marks. 3. Verify that the certificate was added to the certificate database: ``` hostname (config) # show crypto certificate name ``` 4. Save your changes. ``` hostname (config) # write memory ``` ### Example This example downloads a certificate and private key, and adds it to the certificate database with the name "newcert." ``` hostname (config) # crypto certificate name newcert fetch public-cert-url http://acme/security/certs/acme.crt private-key-url http://acme/security/certs/acme.key ``` ``` hostname (config) # show crypto certificate name newcert Certificate with name 'newcert'    Private Key:               present    Serial Number:             0x532gdda69e90b436542ea92e9gd5dor9    SHA-1 Fingerprint:         4563a957349g83264bw2c8b32c0rw5g8d8353246 . . . ``` :