forked from docker/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add client certificate authentication and changes to related pages
Signed-off-by: Maria Bermudez <bermudez.mt@gmail.com> Signed-off-by: Maria Bermudez <bermudez.mt@gmail.com>
- Loading branch information
1 parent
1f0daf1
commit 798e7c8
Showing
10 changed files
with
317 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,45 @@ | ||
--- | ||
title: Use your own TLS certificates | ||
description: Learn how to configure Docker Trusted Registry with your own TLS certificates. | ||
keywords: dtr, tls | ||
keywords: dtr, tls, certificates, security | ||
--- | ||
|
||
By default the DTR services are exposed using HTTPS, to ensure all | ||
communications between clients and DTR is encrypted. Since DTR | ||
replicas use self-signed certificates for this, when a client accesses | ||
DTR, their browsers won't trust this certificate, so the browser displays a | ||
warning message. | ||
Docker Trusted Registry (DTR) services are exposed using HTTPS by default. This ensures encrypted communications between clients and your trusted registry. If you do not pass a PEM-encoded TLS certificate during installation, DTR will generate a [self-signed certificate](https://en.wikipedia.org/wiki/Self-signed_certificate). This leads to an insecure site warning when accessing DTR through a browser. Additionally, DTR includes an [HSTS (HTTP Strict-Transport-Security) header](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) in all API responses which can further lead to your browser refusing to load DTR's web interface. | ||
|
||
You can configure DTR to use your own certificates, so that it is automatically | ||
trusted by your users' browser and client tools. | ||
You can configure DTR to use your own TLS certificates, so that it is automatically | ||
trusted by your users' browser and client tools. As of v2.7, you can also [enable user authentication via client certificates](/ee/enable-authentication-via-client-certs/) provided by your organization's public key infrastructure (PKI). | ||
|
||
## Replace the server certificates | ||
|
||
To configure DTR to use your own certificates and keys, go to the | ||
**DTR web UI**, navigate to the **Settings** page, and scroll down to the | ||
**Domain** section. | ||
You can upload your own TLS certificates and keys using the web interface, or pass them as CLI options when installing or reconfiguring your DTR instance. | ||
|
||
![](../../images/use-your-certificates-1.png){: .with-border} | ||
### Web interface | ||
|
||
Navigate to `https://<dtr-url>` and log in with your credentials. Select **System** from the left navigation pane, and scroll down to **Domain & Proxies**. | ||
|
||
Set the DTR domain name and upload the certificates and key: | ||
![](/ee/dtr/images/use-your-certificates-1.png){: .with-border} | ||
|
||
* Load balancer/public address, is the domain name clients will use to access DTR. | ||
* TLS certificate, is the server certificate and any intermediate CA public | ||
certificates. This certificate needs to be valid for the DTR public address, | ||
Enter your DTR domain name and upload or copy and paste the certificate details: | ||
|
||
* ***Load balancer/public address.*** The domain name clients will use to access DTR. | ||
* ***TLS private key.*** The server private key. | ||
* ***TLS certificate chain.*** The server certificate and any intermediate public | ||
certificates from your certificate authority (CA). This certificate needs to be valid for the DTR public address, | ||
and have SANs for all addresses used to reach the DTR replicas, including load | ||
balancers. | ||
* TLS private key is the server private key. | ||
* TLS CA is the root CA public certificate. | ||
* ***TLS CA.*** The root CA public certificate. | ||
|
||
Finally, click **Save** for the changes to take effect. | ||
Click **Save** to apply your changes. | ||
|
||
If you're using certificates issued by a globally trusted certificate authority, | ||
If you've added certificates issued by a globally trusted CA, | ||
any web browser or client tool should now trust DTR. If you're using an internal | ||
certificate authority, you'll need to configure your system to trust that | ||
certificate authority. | ||
CA, you will need to configure your system to trust that | ||
CA. | ||
|
||
## Where to go next | ||
### Command line interface | ||
|
||
- [Set up external storage](external-storage/index.md) | ||
See [docker/dtr install](/reference/dtr/2.7/cli/install/) and [docker/dtr reconfigure](/reference/dtr/2.7/cli/reconfigure/) for TLS certificate options and usage. | ||
|
||
## Where to go next | ||
- [Enable single sign-on](enable-single-sign-on) | ||
- [Set up external storage](external-storage) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.