Skip to content

Commit

Permalink
tweak readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
sding3 committed Feb 12, 2022
1 parent 391d124 commit 3e0608d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/features/mutual_tls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ go run client/main.go
### Client

In normal TLS, the client is only concerned with authenticating the server by
using a trusted CA file. In mutual TLS, the client also presents the its client
certificate to the server for authentication. This is done via setting
using one or more trusted CA file. In mutual TLS, the client also presents its
client certificate to the server for authentication. This is done via setting
`tls.Config.Certificates`.

### Server

In normal TLS, the server is only concerned with presenting the server
certificate for clients to verify. In mutual TLS, the server also load in a
certificate for clients to verify. In mutual TLS, the server also loads in a
list of trusted CA files for verifying client presented certificates with.
This is done via setting `tls.Config.RootCAs` to the list of trusted CA files,
and setting `tls.config.ClientAuth` to `tls.RequireAndVerifyClientCert`.

0 comments on commit 3e0608d

Please sign in to comment.