From abe503ed21b73d9914c27b845a2b139592c7b72d Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 2 Nov 2018 19:06:32 -0700 Subject: [PATCH] Move examples to it's own directory so the build works. --- examples/README.md | 6 +++--- examples/{ => bootstrap-client}/client.go | 0 examples/{ => bootstrap-server}/server.go | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename examples/{ => bootstrap-client}/client.go (100%) rename examples/{ => bootstrap-server}/server.go (100%) diff --git a/examples/README.md b/examples/README.md index 90a5162b..dcb5229c 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,6 +1,6 @@ # Example -# Client & Server requests +# Bootstrap Client & Server On this example we are going to see the Certificate Authority running, as well as a simple Server using TLS and a simple client doing TLS requests to the @@ -20,7 +20,7 @@ provisioner password: ``` certificates $ export STEPPATH=examples/pki certificates $ export STEP_CA_URL=https://localhost:9000 -certificates $ go run examples/server.go $(step ca new-token localhost)) +certificates $ go run examples/bootstrap-server/server.go $(step ca new-token localhost)) ✔ Key ID: DmAtZt2EhmZr_iTJJ387fr4Md2NbzMXGdXQNW1UWPXk (mariano@smallstep.com) Please enter the password to decrypt the provisioner key: Listening on :8443 ... @@ -58,7 +58,7 @@ But if we the client with the certificate name Mike we'll see: ``` certificates $ export STEPPATH=examples/pki certificates $ export STEP_CA_URL=https://localhost:9000 -certificates $ go run examples/client.go $(step ca new-token Mike) +certificates $ go run examples/bootstrap-client/client.go $(step ca new-token Mike) ✔ Key ID: DmAtZt2EhmZr_iTJJ387fr4Md2NbzMXGdXQNW1UWPXk (mariano@smallstep.com) Please enter the password to decrypt the provisioner key: Server responded: Hello Mike at 2018-11-03 01:52:52.678215 +0000 UTC!!! diff --git a/examples/client.go b/examples/bootstrap-client/client.go similarity index 100% rename from examples/client.go rename to examples/bootstrap-client/client.go diff --git a/examples/server.go b/examples/bootstrap-server/server.go similarity index 100% rename from examples/server.go rename to examples/bootstrap-server/server.go