Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da0349b

Browse files
author
Joao Fernandes
committed
Adds docs on how to replace certs
Fixes docker#1946
1 parent 60a1b6c commit da0349b

File tree

5 files changed

+70
-4
lines changed

5 files changed

+70
-4
lines changed

configuration/configure-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords = ["docker, ucp, integrate, logs"]
66
[menu.main]
77
parent="mn_ucp_configuration"
88
identifier="ucp_configure_logs"
9-
weight=0
9+
weight=10
1010
+++
1111
<![end-metadata]-->
1212

configuration/dtr-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords = ["trusted, registry, integrate, UCP, DTR"]
77
[menu.main]
88
parent="mn_ucp_configuration"
99
identifier="ucp_integrate_dtr"
10-
weight=10
10+
weight=20
1111
+++
1212
<![end-metadata]-->
1313

configuration/ldap-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description="Learn how to integrate UCP with an LDAP service, so that you can ma
66
[menu.main]
77
parent="mn_ucp_configuration"
88
identifier="ucp_ldap_integration"
9-
weight=20
9+
weight=30
1010
+++
1111
<![end-metadata]-->
1212

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!--[metadata]>
2+
+++
3+
title = "Use externally-signed certificates"
4+
description = "Learn how to configure Docker Universal Control Plane to use your own certificates."
5+
keywords = ["Universal Control Plane, UCP, certificate, authentiation, tls"]
6+
[menu.main]
7+
parent="mn_ucp_configuration"
8+
identifier="ucp_configure_certs"
9+
weight=0
10+
+++
11+
<![end-metadata]-->
12+
13+
# Use externally-signed certificates
14+
15+
Docker Universal Control Plane uses TLS to encrypt the traffic between users
16+
and your cluster. By default this is done using self-signed certificates.
17+
Since self-signed certificates are not trusted by web browsers, when users
18+
access the UCP web UI, their browsers display a security warning. To avoid this,
19+
you can configure UCP to use externally signed certificates.
20+
21+
This can be done while
22+
[installing the UCP cluster](../installation/install-production.md) by
23+
providing the externally signed certificates during the installation.
24+
If you install UCP without providing externally signed certificates, then
25+
self-signed certificates are used by default. These certificates can be replaced
26+
at any time.
27+
28+
Since client certificate bundles are signed and verified with the UCP server
29+
certificates, if you replace the UCP server certificates, users have to
30+
download new client certificate bundles to be able to run Docker commands on
31+
the cluster.
32+
33+
## Replace existing certificates
34+
35+
To replace the server certificates used by UCP, for each controller node:
36+
37+
1. Login into the node with ssh.
38+
2. In the directory where you have the keys and certificates to use, run:
39+
40+
```bash
41+
# Create a container that attaches to the same volume where certificates are stored
42+
$ docker create --name replace-certs -v ucp-controller-server-certs:/data busybox
43+
44+
# Copy your keys and certificates to the container's volumes
45+
$ docker cp cert.pem replace-certs:/data/cert.pem
46+
$ docker cp ca.pem replace-certs:/data/ca.pem
47+
$ docker cp key.pem replace-certs:/data/key.pem
48+
49+
# Remove the container, since you won't need it any longer
50+
$ docker rm replace-certs
51+
```
52+
53+
3. Restart the `ucp-controller` container.
54+
55+
To avoid downtime, don't restart all the `ucp-controller` containers of
56+
your cluster at the same time.
57+
58+
```bash
59+
$ docker restart ucp-controller
60+
```
61+
62+
4. Let your users know.
63+
64+
After replacing the certificates your users won't be able to authenticate
65+
with their old client certificate bundles. Ask your users to go to the UCP
66+
web UI and [get new client certificate bundles](../access-ucp/cli-based-access.md).

installation/install-production.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If you want to use your own certificates:
6262

6363
2. Create a volume with the name `ucp-controller-server-certs`.
6464

65-
3. Add the following files to the volume top-level directory:
65+
3. Add the following files to `/var/lib/docker/volumes/ucp-controller-server-certs/_data/`:
6666

6767
| File | Description |
6868
|:---------|:----------------------------------------------------------------------------------|

0 commit comments

Comments
 (0)