Просмотр исходного кода

Move examples to it's own directory so the build works.

Mariano Cano 8 лет назад
Родитель
Сommit
abe503ed21
3 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      examples/README.md
  2. 0 0
      examples/bootstrap-client/client.go
  3. 0 0
      examples/bootstrap-server/server.go

+ 3 - 3
examples/README.md

@@ -1,6 +1,6 @@
 # Example
 # Example
 
 
-# Client & Server requests
+# Bootstrap Client & Server
 
 
 On this example we are going to see the Certificate Authority running, as well
 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
 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 STEPPATH=examples/pki 
 certificates $ export STEP_CA_URL=https://localhost:9000
 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)
 ✔ Key ID: DmAtZt2EhmZr_iTJJ387fr4Md2NbzMXGdXQNW1UWPXk (mariano@smallstep.com)
 Please enter the password to decrypt the provisioner key:
 Please enter the password to decrypt the provisioner key:
 Listening on :8443 ...
 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 STEPPATH=examples/pki 
 certificates $ export STEP_CA_URL=https://localhost:9000
 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)
 ✔ Key ID: DmAtZt2EhmZr_iTJJ387fr4Md2NbzMXGdXQNW1UWPXk (mariano@smallstep.com)
 Please enter the password to decrypt the provisioner key:
 Please enter the password to decrypt the provisioner key:
 Server responded: Hello Mike at 2018-11-03 01:52:52.678215 +0000 UTC!!!
 Server responded: Hello Mike at 2018-11-03 01:52:52.678215 +0000 UTC!!!

+ 0 - 0
examples/client.go → examples/bootstrap-client/client.go


+ 0 - 0
examples/server.go → examples/bootstrap-server/server.go