Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Example readme, make localhost a link. Adjust import orders in example
Browse files Browse the repository at this point in the history
file.
  • Loading branch information
jeremy-clerc committed Feb 15, 2017
1 parent 48788f8 commit da29806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/client-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
8 changes: 3 additions & 5 deletions example/client-auth/client-auth.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit da29806

Please sign in to comment.