Skip to content

Commit a5d18ab

Browse files
author
Tristan Colgate
committed
Fix for reading of client certs
1 parent d90e566 commit a5d18ab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.8
1+
0.2.9

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ cfgDirs:
241241
cabs, err := ioutil.ReadFile(*caPath)
242242
if err != nil {
243243
log.Fatalf("Could not open ca file,, " + err.Error())
244-
ok := pool.AppendCertsFromPEM(cabs)
245-
if !ok {
246-
log.Fatalf("Failed loading ca certs")
247-
}
244+
}
245+
ok := pool.AppendCertsFromPEM(cabs)
246+
if !ok {
247+
log.Fatalf("Failed loading ca certs")
248248
}
249249

250250
tlsConfig.ClientAuth = tls.RequireAndVerifyClientCert

0 commit comments

Comments
 (0)