In this post I’ll show you how to configure a Go gRPC client and server using Let’s Encrypt TLS certificates. This ended up being very simple thanks to the autocert package. Note that at this point that package is not stable, so you should vendor it in your code.
Autocert implements the tls.GetCertificate function and requires a directory to cache certificates in to avoid excessive calls to Let’s Encrypt.
package acme // import github.