# Update certificate authorities

This page explains how you can update the configuration for a certificate
authority (CA).

## Update labels on a CA

### Console

1. In the Google Cloud console, go to the **Certificate authorities** page.

   [Go to Certificate authorities](https://console.cloud.google.com/security/cas/certificateAuthorities)
2. Under **Certificate authorities**, pick your target CA.

   1. In the **Summary** section, click **Edit**.
   2. Click **Add labels**.
   3. In the panel on the right side, click **Add Item**.
   4. Add the **Key** and **Value** for your label.
   5. Click **Save**.

### gcloud

    gcloud privateca roots update CA_NAME --location LOCATION --pool POOL_NAME --update-labels foo=bar

Where:

- <var translate="no">CA_NAME</var>: the unique identifier of the CA.
- <var translate="no">LOCATION</var>: the location of the certificate authority.
- <var translate="no">POOL_NAME</var>: the unique identifier of the CA pool.
- `--update-labels` flag mentions the key-value pairs to update.

For more information about the `gcloud privateca roots update` command, see
[gcloud privateca roots
update](https://docs.cloud.google.com/sdk/gcloud/reference/privateca/roots/update).

## What's next

- Learn how to [manage the CA state](https://docs.cloud.google.com/certificate-authority-service/docs/managing-ca-state).
- Learn how to [delete CAs](https://docs.cloud.google.com/certificate-authority-service/docs/deleting-certificate-authorities).