Skip to content

Instantly share code, notes, and snippets.

import typer
from rich import print
from rich.prompt import Prompt
from datetime import datetime
import langroid as lr
from langroid.utils.configuration import settings
app = typer.Typer()

Enable Docker Remote API with TLS client verification

Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:

  • CA certificate
  • Server certificate
  • Server key
  • Client certificate
  • Client key

Create certificate files

@pixelkaiser
pixelkaiser / c301.rb
Created June 12, 2013 20:50 — forked from Dan-Q/c301.rb
#!/usr/bin/ruby
#
# Author: Dan Q ([email protected])
# More information: http://www.scatmania.org/?p=4600
#
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.