我正在尝试在Windows 8.1的全新安装上,使用Visual Studio 2012 Express中的RestSharp。我试图使用的API仅支持RC4-SHA进行SSL。证书是有效的。
var client = new RestClient();
client.BaseUrl = "https://teststore.mybigcommerce.com/api/v2/";
client.Authenticator = new HttpBasicAuthenticator("username", "key");
var request = new RestRequest();
request.Resource = "time.json";
IRestResponse response = client.Execute(bcrequest);
我不断收到客户端的错误提示:
The request was aborted: Could not create SSL/TLS secure channel
。我一直以为是证书问题,直到我最终进行数据包捕获并发现没有共同的密码套件。在客户端端没有可用的RC4-SHA。安装Windows 7并运行完全相同的代码后,问题消失了。