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"