# Upgrading Connectware to 2.4.0 (Docker)

Connectware 2.4.0 adds the `caFile` property to the OPC UA Server, refreshes the Admin UI, and updates Node.js versions across Connectware services. For a complete list of changes, see the [2.4.0 changelog](https://docs.cybus.io/2-4-0/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-docker/pages/Ikq5bt92yeRVw4ltw6KG#what-has-changed-in-2.4.0).

{% stepper %}
{% step %}

## Upgrading Connectware to 2.4.0

Follow the instructions in [Upgrading Connectware (Docker)](/2-4-0/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-docker.md) to upgrade to version 2.4.0.
{% endstep %}

{% step %}

## OPC UA Server with Custom PKI: Add caFile

This step applies if you are running OPC UA Server services with a **custom PKI** — that is, you have configured your own `certificateFile` and `privateKeyFile` signed by your organization's CA. If you do not use the OPC UA Server, skip this step.

Previously, the only way to provide your CA certificate to the OPC UA Server was to manually place it in `/app/.config/node-opcua-default-nodejs` inside the container. Connectware 2.4.0 introduces the `caFile` property as the recommended way to provide the CA certificate to the OPC UA Server.

To migrate, add `caFile` to the `properties` of your OPC UA Server resource in each affected service commissioning file, pointing to the path of your CA certificate inside the container:

{% code lineNumbers="true" %}

```yaml
resources:
  opcuaServer:
    type: Cybus::Server::Opcua
    properties:
      protocol: OpcuaServer
      certificateFile: /path/to/server.crt
      privateKeyFile: /path/to/server.key
      caFile: /path/to/ca.crt
```

{% endcode %}

For more information, see [CA Certificate](/2-4-0/connectors/servers/opc-ua-server.md#ca-certificate).
{% endstep %}
{% endstepper %}


---

# 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://docs.cybus.io/2-4-0/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-docker/upgrading-connectware-to-2-4-0-docker.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.
