Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
server
client.go
readme.md

readme.md

03-http-server

HOME

This section explains how to configure client correctly to trust the server certificate using a pool of trusted clients.

Since server's certificate is signed by public key of the root CA, we can cryptographically validate the server certificate.

  • To do that, we first create a certificate pool that can hold one or more CA certificates.
  • We then read all the CA certificates and load it on the CA certificate pool.

In our case, we only have one root CA certificate so we just load one certificate. In general its a common practice to load a chain of root CAs, intermediate CAs on the client.

You can’t perform that action at this time.