Skip to content

Commit

Permalink
Fix for reading of client certs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Colgate committed Mar 29, 2019
1 parent d90e566 commit a5d18ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.8
0.2.9
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ cfgDirs:
cabs, err := ioutil.ReadFile(*caPath)
if err != nil {
log.Fatalf("Could not open ca file,, " + err.Error())
ok := pool.AppendCertsFromPEM(cabs)
if !ok {
log.Fatalf("Failed loading ca certs")
}
}
ok := pool.AppendCertsFromPEM(cabs)
if !ok {
log.Fatalf("Failed loading ca certs")
}

tlsConfig.ClientAuth = tls.RequireAndVerifyClientCert
Expand Down

0 comments on commit a5d18ab

Please sign in to comment.