Skip to content

Commit 50d09c1

Browse files
committed
Fix example and use ClientCAs.
Server trust client certificates using ClientCAs instead of RootCAs.
1 parent 54e4360 commit 50d09c1

File tree

1 file changed

+1
-1
lines changed
  • examples/basic-federation/server

1 file changed

+1
-1
lines changed

examples/basic-federation/server/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func main() {
3434

3535
w.Write([]byte(fmt.Sprintf("Hello %s (cert issued by '%s') at %s", name, issuer, time.Now().UTC())))
3636
}),
37-
}, ca.AddFederationToRootCAs(), ListTrustedRoots())
37+
}, ca.AddFederationToClientCAs(), ListTrustedRoots())
3838
if err != nil {
3939
panic(err)
4040
}

0 commit comments

Comments
 (0)