Skip to content

Commit a9de38e

Browse files
ranbelnikitacano
andauthored
[ZT] Revoke cert.pem for locally-managed tunnels (#28800)
* revoke cert.pem * Argo Tunnel > Cloudflare Tunnel --------- Co-authored-by: Nikita Cano <48366124+nikitacano@users.noreply.github.com>
1 parent 063ea1d commit a9de38e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/content/partials/cloudflare-one/tunnel/locally-managed/tunnel-permissions.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,23 @@ Refer to the table below for a comparison between the two files and the purposes
2020
| **File type** | `.pem` | `.json` |
2121
| **Stored in** | <a href={props.defaultDirectoryURL}>Default directory</a> | <a href={props.defaultDirectoryURL}>Default directory</a> |
2222
| **Issued when running** | `cloudflared tunnel login` | `cloudflared tunnel create <NAME>` |
23-
| **Valid for** | At least 10 years, and the service token it contains is valid until revoked | Does not expire |
23+
| **Valid for** | At least 10 years, and the service token it contains is valid until [revoked](#revoke-account-certificate) | Does not expire |
2424
| **Needed to** | Manage tunnels (for example, create, route, delete and list tunnels) | Run a tunnel. Create a config file. |
2525

2626
## Tunnel ownership
2727

2828
Tunnel ownership is bound to the Cloudflare account for which the `cert.pem` file was issued upon authenticating `cloudflared`. If a user in a Cloudflare account creates a tunnel, any other user in the same account who has access to the `cert.pem` file for the account can delete, list, or otherwise manage tunnels within it.
2929

30+
## Revoke account certificate
31+
32+
Your account certificate (`cert.pem`) contains an API token which authorizes `cloudflared` to manage tunnels in your Cloudflare account. To revoke the account certificate, delete the API token associated with your tunnel:
33+
34+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and go to **My Profile** > **API Tokens**.
35+
2. Find the **Cloudflare Tunnel API Token** or **Argo Tunnel API Token** for your zone and account.
36+
3. Select the three dots > **Delete**.
37+
38+
Once this token is deleted, `cloudflared` can no longer use the old `cert.pem` file to read or edit tunnels in your account. To generate a new token and `cert.pem` file, run `cloudflared tunnel login`.
39+
3040
## Account-scoped roles
3141

3242
<Render file="tunnel/account-scoped-roles" product="cloudflare-one" />

0 commit comments

Comments
 (0)