aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/client-auth/README.md4
-rw-r--r--example/client-auth/client-auth.go8
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"