Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 891 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 891 Bytes

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