# Refresh Cluster CA

The cluster CA cannot be rotated without an upgrade to LTS2. On LTS1, the only way is to adjust the TTL of the certs that the CA signs to be less than the expiry of the CA.

Please run the following steps inside the DU VM as root:

Open `/etc/pf9-vault.d/server-config.hcl` . It would look something like below:

{% tabs %}
{% tab title="Bash" %}

```bash
storage "mysql" {
    database = "qbert"
    table = "vault"
    username = "qbert"
    password = "*************"
    address = "localhost:3306"
}

listener "tcp" {
    address = "localhost:8200"
    tls_disable = 1
}

default_lease_ttl = "26280h"
max_lease_ttl = "26280h"
```

{% endtab %}
{% endtabs %}

Adjust the `default_lease_ttl` and `max_lease_ttl` to a time lesser than remaining CA time.

Once this is done, restart the pf9-vault service:

{% tabs %}
{% tab title="Bash" %}

```bash
systemctl restart pf9-vault
```

{% endtab %}
{% endtabs %}

After the vault service is restarted on the DU, the nodelet phases needs to be restarted on all nodes to generate new certificates with the updated TTL value.

Given that this involves a stack restart - workloads will be affected. Please run this within a maintenance window.

Run this command on all nodes:

{% tabs %}
{% tab title="Bash" %}

```bash
systemctl stop pf9-hostagent pf9-nodeletd
/opt/pf9/nodelet/nodeletd phases restart --regen-certs
systemctl start pf9-hostagent
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/smcp/solution/refresh-cluster-ca.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
