title: golang: Send http request with certificate
body: <p>For first I am newbie in golang.</p>
  
  <p>I try to send https request. I create http.Client like this:</p>
  
  <pre><code>func httpClient(c *Config) (httpClient *http.Client) {
  cert, _ := tls.LoadX509KeyPair(c.CertFile, c.KeyFile)
  
  ssl := &amp;tls.Config{
      Certificates:       []tls.Certificate{cert},
      InsecureSkipVerify: true,
  }
  
  ssl.Rand = rand.Reader
  return &amp;http.Client{
      Transport: &amp;http.Transport{
          TLSClientConfig: ssl,
      },
  }
  }
  </code></pre>
  
  <p>But as result I get <code>local error: no renegotiation</code>.</p>
  
  <p>Thanks for any help!</p>