diff options
| author | Jeremy Clerc <jclerc@google.com> | 2017-02-15 14:48:45 +0100 |
|---|---|---|
| committer | Jeremy Clerc <jclerc@google.com> | 2017-02-15 14:48:45 +0100 |
| commit | da29806f5b70ad69f35f13566768252e4d6588af (patch) | |
| tree | 1618a1e5673c6ca71434de19dbc080af92d709b9 | |
| parent | 48788f8d084bc2e3d97341b060761747faf11a83 (diff) | |
| download | easypki-da29806f5b70ad69f35f13566768252e4d6588af.tar.xz | |
Example readme, make localhost a link. Adjust import orders in examplev1.1.0
file.
| -rw-r--r-- | example/client-auth/README.md | 4 | ||||
| -rw-r--r-- | example/client-auth/client-auth.go | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/example/client-auth/README.md b/example/client-auth/README.md index 44d0d50..c11fe06 100644 --- a/example/client-auth/README.md +++ b/example/client-auth/README.md @@ -52,8 +52,8 @@ Run nginx: docker run --rm -v $PWD/conf.d:/etc/nginx/conf.d -p 8080:443 nginx ``` -Open you browser at https://localhost:8080, and you should see "Welcome to -nginx!". +Open you browser at [https://localhost:8080](https://localhost:8080), +and you should see "Welcome to nginx!". Try to remove your client certificate from your browser and you get 400 bad request. diff --git a/example/client-auth/client-auth.go b/example/client-auth/client-auth.go index c877fbb..8b1e4bf 100644 --- a/example/client-auth/client-auth.go +++ b/example/client-auth/client-auth.go @@ -1,16 +1,14 @@ package main import ( + "crypto/x509" + "crypto/x509/pkix" "encoding/pem" "flag" "io/ioutil" "log" - "time" - "os" - - "crypto/x509" - "crypto/x509/pkix" + "time" "github.com/boltdb/bolt" "github.com/go-yaml/yaml" |
