We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
certPool := x509.NewCertPool() buf, err := ioutil.ReadFile("etc/ssl/certs/root-ca.crt") if err != nil { return err } certPool.AppendCertsFromPEM(buf) tlsConfig := &tls.Config{RootCAs: certPool}