/docker-tls-helper

Automate the process of creating the numerous certificates and keys to secure your docker daemon over TLS

Primary LanguageShellGNU General Public License v3.0GPL-3.0

frntn/docker-tls-helper

One command to generate the numerous certificates and keys required to protect the Docker daemon socket.

Usage

Setup SRV_SUBJ and CLT_SUBJ environment variables and execute the script :

curl -sSL https://raw.githubusercontent.com/frntn/docker-tls-helper/master/dockertls.sh | SRV_SUBJ="/CN=remote.example.com" CLT_SUBJ="/CN=Docker Admin CLI" bash

You can additionally Setup SRV_SAN environment variable to access your docker server from multiple endpoints :

curl -sSL https://raw.githubusercontent.com/frntn/docker-tls-helper/master/dockertls.sh | SRV_SAN="DNS:docker.example.com,IP:1.1.1.1,IP:2.2.2.2" SRV_SUBJ="/CN=remote.example.com" CLT_SUBJ="/CN=Docker Admin CLI" bash

Result

Here is a screenshot of the generated ouput :

official-logo