generate_cert

command module
v0.0.0-...-477337c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

README

generate_cert

generate the tls certs needed for Docker TLS socket.

run:

  • ./make.sh

Which will generate the certificate files you need and put them into your ~/.docker dir

Then copy the certs from ~/.docker/ to your boot2docker and start the server with them:

  • sudo docker -d --tlsverify --tlscacert=ca.pem --tlscert=servercert.pem --tlskey=serverkey.pem -H tcp://0.0.0.0:2376 -D

then back on your OSX box, you can run:

  • docker -H 192.168.59.103:2376 --tls version

Building

There's a Makefile, which then uses the Dockerfile to generate Linux, OSX and Windows binaries

Documentation

Overview

Usage:

Generate CA
  ./generate_cert --cert ca.pem --key ca-key.pem
Generate CA overwriting existing files
  ./generate_cert --cert ca.pem --key ca-key.pem --overwrite
Generate signed certificate
  ./generate_cert --host 127.0.0.1 --cert cert.pem --key key.pem --ca ca.pem --ca-key ca-key.pem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL