【发布时间】:2016-05-30 09:37:28
【问题描述】:
首先我是golang的新手。
我尝试发送 https 请求。我这样创建 http.Client:
func httpClient(c *Config) (httpClient *http.Client) {
cert, _ := tls.LoadX509KeyPair(c.CertFile, c.KeyFile)
ssl := &tls.Config{
Certificates: []tls.Certificate{cert},
InsecureSkipVerify: true,
}
ssl.Rand = rand.Reader
return &http.Client{
Transport: &http.Transport{
TLSClientConfig: ssl,
},
}
}
但结果我得到了local error: no renegotiation。
感谢您的帮助!
【问题讨论】: