Skip to content

Instantly share code, notes, and snippets.

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 (dan@scatmania.org)
# 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.