Skip to content

Instantly share code, notes, and snippets.

@ivan-pinatti
ivan-pinatti / docker-configure-tls.sh
Last active January 13, 2024 19:32
Enable TLS in Docker service running in Ubuntu - #docker #docker-tls #tls #ubuntu
#!/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
@LockTar
LockTar / CreateCARoot.cmd
Last active January 9, 2017 07:37
Create self signed certificates with makecert. Run the command in the Visual Studio Developer command prompt for direct access of makecert. Call the CreateCARoot.cmd first without any parameters. This will create a CARoot certificate. Call CreateSslServerCert.cmd with the name of the certificate als parameter. Like this CreateSslServerCert.cmd S…
makecert.exe ^
-n "CN=CARoot" ^
-r ^
-pe ^
-a sha512 ^
-len 4096 ^
-cy authority ^
-sv CARoot.pvk ^
CARoot.cer