Skip to content

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

License

Notifications You must be signed in to change notification settings

frntn/docker-tls-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages