From 48788f8d084bc2e3d97341b060761747faf11a83 Mon Sep 17 00:00:00 2001 From: Jeremy Clerc Date: Wed, 15 Feb 2017 14:45:47 +0100 Subject: Group example binary to not mess with go get. --- example/client-auth/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'example/client-auth/README.md') diff --git a/example/client-auth/README.md b/example/client-auth/README.md index b359ace..44d0d50 100644 --- a/example/client-auth/README.md +++ b/example/client-auth/README.md @@ -7,14 +7,14 @@ having a trusted certificate. Build the PKI from the yaml definition: ``` -go run build-pki.go -config_path pki.yaml -db_path pki.boltdb +go run client-auth.go -config_path pki.yaml -db_path pki.boltdb ``` Fetch the certificates needed for nginx: ``` -go run get.go -db_path pki.boltdb -ca_name "Admins Intermediate CA" -bundle_name "localhost" -go run get.go -db_path pki.boltdb -bundle_name "Admins Intermediate CA" +go run client-auth.go -db_path pki.boltdb -ca_name "Admins Intermediate CA" -bundle_name "localhost" +go run client-auth.go -db_path pki.boltdb -bundle_name "Admins Intermediate CA" ``` Create the nginx config structure: @@ -32,7 +32,7 @@ golang.org/x/crypto/pkcs12 only provides decoding, so we use openssl. Fetch the client certificate and create a pkcs12 formatted file: ``` -go run get.go -db_path pki.boltdb -ca_name "Admins Intermediate CA" -bundle_name bob@acme.com -full_chain=false +go run client-auth.go -db_path pki.boltdb -ca_name "Admins Intermediate CA" -bundle_name bob@acme.com -full_chain=false cat bob@acme.com.{key,crt} | openssl pkcs12 -export -out bob@acme.com+pkcs12.crt ``` @@ -41,7 +41,7 @@ Import bob@acme.com+pkcs12.crt in your favorite browser. Fetch the root CA to import in the browser: ``` -go run get.go -db_path pki.boltdb -bundle_name "CA" +go run client-auth.go -db_path pki.boltdb -bundle_name "CA" ``` Import CA+chain.crt in your favorite browser. -- cgit v1.3