This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
: ' Script that enables TLS for Docker service in Ubuntu 16.x | |
This script is intended to be run as root | |
It; | |
- Generates the keys | |
- Creates the daemon.json Docker config file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makecert.exe ^ | |
-n "CN=CARoot" ^ | |
-r ^ | |
-pe ^ | |
-a sha512 ^ | |
-len 4096 ^ | |
-cy authority ^ | |
-sv CARoot.pvk ^ | |
CARoot.cer |