---
title: "ezgh private-ca certificate get"
description: "Show a certificate a private CA issued."
---

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

# ezgh private-ca certificate get

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh private-ca certificate get <id> [--out file] [flags]
```

Show a certificate a private CA issued: its names, profile, key source, serial, validity and revocation. `--out` writes the certificate and its chain to a new file (`--force` replaces one); -o json includes them as PEM.

Part of [`ezgh private-ca certificate`](/cli/reference/private-ca-certificate).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--force` | boolean |  | replace `--out` if it exists |
| `--out` | string |  | write the certificate and its chain to this new file |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/private-ca-certificate-get/index.mdx
