Restsharp :The SSL connection could not be established
0
An app is run on netcore2.1.5,win7. I use restsharp to request the API and need to take client certificates, always return the error: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception The inner exception content: System.ComponentModel.Win32Exception (0x80090326): 接收到的消息异常,或格式不正确。 English version: "The message received is abnormal or not formatted correctly" I user postman to request the API and take the same crt file and response the result result. My code on below: string clientCertfile = @"E:httpsclient.crt"; var client = new RestClient("https://apiserver/iocm/app/sec/v1.1.0/login"); X509Certificate2 certificates = new X509Certificate2(clientCertfile); //X509Certificate2 certificates =...