Docker Universal Control Plane uses TLS to encrypt the traffic between users and your cluster. By default this is done using self-signed certificates.
If you installed UCP with the default self-signed certs, you can replace them with externally-signed certs after the installation process.
To replace the server certificates used by UCP, for each controller node, in the directory where you have your keys and certificates, use the following commands:
- Create a container that attaches to the same volume where certificates are stored:
docker create --name replace-certs -v ucp-controller-server-certs:/data busybox
- Copy your keys and certificates to the container's volumes:
docker cp cert.pem replace-certs:/data/cert.pem docker cp ca.pem replace-certs:/data/ca.pem docker cp key.pem replace-certs:/data/key.pem
- Remove the container, since you won't need it any longer:
docker rm replace-certs
- Restart the ucp-controller container:
docker restart ucp-controller
- Communicate the change to users. Ask users to log into UCP and download the updated certificate client bundle.