title: https request with client.crt and client.key
body: <p>I want to send a POST request to https server and get the response. Here is what I am doing in curl and it works well.</p>
  
  <p><code>curl --key ./client.key --cert ./client.crt https://test-as.sgx.trustedservices.intel.com:443/attestation/sgx/v2/report -H 'Content-Type: application/json' --data '{"key": "value"}'</code></p>
  
  <p>This is the code snippet I tried in Go.</p>
  
  <pre><code>    url := "https://test-as.sgx.trustedservices.intel.com:443/attestation/sgx/v2/report"
      pair, e := tls.LoadX509KeyPair("client.crt", "client.key")
      if e != nil {
          log.Fatal("LoadX509KeyPair:", e)
      }
  
      client := &amp;http.Client{
          Transport: &amp;http.Transport{
              TLSClientConfig: &amp;tls.Config{
                  InsecureSkipVerify: true,
                  Certificates: []tls.Certificate{pair},
              },
          }}
  
      resp, e := client.Post(url, "application/json", bytes.NewBufferString(payload))
  </code></pre>
  
  <p>The program is hanging at the last line, error message is</p>
  
  <pre><code>Post: dial tcp connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
  </code></pre>
  
  <p>I feel there is problem in my connection establish code, instead of the server's problem since server works perfectly with curl.</p>