forked from TrueCloudLab/certificates
Fix example and use ClientCAs.
Server trust client certificates using ClientCAs instead of RootCAs.
This commit is contained in:
parent
54e43604ff
commit
50d09c183b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ func main() {
|
||||||
|
|
||||||
w.Write([]byte(fmt.Sprintf("Hello %s (cert issued by '%s') at %s", name, issuer, time.Now().UTC())))
|
w.Write([]byte(fmt.Sprintf("Hello %s (cert issued by '%s') at %s", name, issuer, time.Now().UTC())))
|
||||||
}),
|
}),
|
||||||
}, ca.AddFederationToRootCAs(), ListTrustedRoots())
|
}, ca.AddFederationToClientCAs(), ListTrustedRoots())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue