Throws System.PlatformNotSupportedException in fedora26

asked 2017-10-19 04:59:48 -0500

Anand K gravatar image

Hi All,

I am working on .net core project, i used my project in fedora26 os, I am getting "System.PlatformNotSupportedException: The handler does not support custom handling of certificates with this combination of libcurl (7.53.1) and its SSL backend (\"NSS/3.29.3\")" in fedora 26 os. when i call handler method. i used below code, please let me know how to resolve this issue?

Code: var handler = new HttpClientHandler { UseDefaultCredentials = true }; handler.ServerCertificateCustomValidationCallback = delegate { return true; }; var client = new HttpClient(handler, true); client.PostAsync(url, new StringContent(requestMessage, Encoding.UTF8, "text/plain")).Result;

Exception: "System.AggregateException: One or more errors occurred. (The handler does not support custom handling of certificates with this combination of libcurl (7.53.1) and its SSL backend (\"NSS/3.29.3\").) ---> System.PlatformNotSupportedException: The handler does not support custom handling of certificates with this combination of libcurl (7.53.1) and its SSL backend (\"NSS/3.29.3\").

edit retag flag offensive close merge delete

Comments

Hi, welcome to Ask Fedora!

Well, I don't know. But you should probably search to see which combinations it is expected to support :) :P

hedayat gravatar imagehedayat ( 2017-10-26 16:52:18 -0500 )edit