Provide a bit more context around where commands should be executed. Fixes #995. (#2920)

This commit is contained in:
Cory Locklear 2017-04-20 14:24:45 -05:00 committed by Misty Stanley-Jones
parent dc19f39a61
commit e0ff65e6c9
1 changed files with 8 additions and 1 deletions

View File

@ -32,7 +32,7 @@ it will only connect to servers with a certificate signed by that CA.
> **Note**: replace all instances of `$HOST` in the following example with the > **Note**: replace all instances of `$HOST` in the following example with the
> DNS name of your Docker daemon's host. > DNS name of your Docker daemon's host.
First generate CA private and public keys: First, on the **Docker daemon's host machine**, generate CA private and public keys:
$ openssl genrsa -aes256 -out ca-key.pem 4096 $ openssl genrsa -aes256 -out ca-key.pem 4096
Generating RSA private key, 4096 bit long modulus Generating RSA private key, 4096 bit long modulus
@ -90,6 +90,9 @@ using `10.10.10.20` and `127.0.0.1`:
For client authentication, create a client key and certificate signing For client authentication, create a client key and certificate signing
request: request:
> **Note:** for simplicity of the next couple of steps, you may perform this
> step on the Docker daemon's host machine as well.
$ openssl genrsa -out key.pem 4096 $ openssl genrsa -out key.pem 4096
Generating RSA private key, 4096 bit long modulus Generating RSA private key, 4096 bit long modulus
.........................................................++ .........................................................++
@ -138,6 +141,10 @@ providing a certificate trusted by our CA:
To be able to connect to Docker and validate its certificate, you now To be able to connect to Docker and validate its certificate, you now
need to provide your client keys, certificates and trusted CA: need to provide your client keys, certificates and trusted CA:
> **Note**: This step should be run on your Docker client machine. As such, you
> need to copy your CA certificate, your server certificate, and your client
> certificate to that machine.
> **Note**: replace all instances of `$HOST` in the following example with the > **Note**: replace all instances of `$HOST` in the following example with the
> DNS name of your Docker daemon's host. > DNS name of your Docker daemon's host.