mirror of https://github.com/docker/docs.git
commit
cc03297c77
|
@ -4,7 +4,7 @@
|
||||||
# a public CA or an internal CA should be used
|
# a public CA or an internal CA should be used
|
||||||
|
|
||||||
|
|
||||||
CLIENT_USAGE=<<EOL
|
CLIENT_USAGE=$(cat <<EOL
|
||||||
Generate a self-signed client cert and key to be used in mutual TLS.
|
Generate a self-signed client cert and key to be used in mutual TLS.
|
||||||
|
|
||||||
${0} client [-o <output file prefix>]
|
${0} client [-o <output file prefix>]
|
||||||
|
@ -12,18 +12,20 @@ ${0} client [-o <output file prefix>]
|
||||||
Example:
|
Example:
|
||||||
${0} client -o clienttls
|
${0} client -o clienttls
|
||||||
EOL
|
EOL
|
||||||
|
)
|
||||||
|
|
||||||
SERVER_USAGE=<<EOL
|
SERVER_USAGE=$(cat <<EOL
|
||||||
Generate a self-signed cert key and certificate.
|
Generate a self-signed cert key and certificate.
|
||||||
|
|
||||||
${0} server -n <common name> [-o <output file prefix>]
|
${0} server -n <common name> [-o <output file prefix>]
|
||||||
[-r <root key if don't want it self-signed>]
|
[-r <root key if do not want it self-signed>]
|
||||||
[-a <subjectAltName>] [-a <subjectAltName>] ...
|
[-a <subjectAltName>] [-a <subjectAltName>] ...
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
${0} server -o servertls -n notary-server -a DNS:notaryserver \
|
${0} server -o servertls -n notary-server -a DNS:notaryserver \
|
||||||
-a DNS:notary_server -a IP:127.0.0.1"
|
-a DNS:notary_server -a IP:127.0.0.1
|
||||||
EOL
|
EOL
|
||||||
|
)
|
||||||
|
|
||||||
if [[ -z "${1}" ]]; then
|
if [[ -z "${1}" ]]; then
|
||||||
printf "${CLIENT_USAGE}\n\n${SERVER_USAGE}\n\n"
|
printf "${CLIENT_USAGE}\n\n${SERVER_USAGE}\n\n"
|
||||||
|
|
Loading…
Reference in New Issue