Implementing TLS configuration in Go