访问https 错误 基础连接已经关闭: 未能为 SSL/TLS 安全通道建立信任关系
红衣老大 2016-02-19 11:33:22 为了获取 AccessToken
访问
Dim url As String = String.Format("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}", appId, appSecret)
Dim request As HttpWebRequest = TryCast(WebRequest.Create(url), HttpWebRequest)
request.Method = "GET"
Dim response As HttpWebResponse = DirectCast(request.GetResponse, HttpWebResponse)
结果出错 基础连接已经关闭: 未能为 SSL/TLS 安全通道建立信任关系