masroore / CurlSharp

CurlSharp - .Net binding and object-oriented wrapper for libcurl.
BSD 3-Clause "New" or "Revised" License
182 stars 71 forks source link

Curl SSL Two way communiation #38

Open gurumurthyjv opened 6 years ago

gurumurthyjv commented 6 years ago

any one can help me out with curl ssl 2 way communication. using the below code snippet

using (var easy = new CurlEasy()) { easy.AutoReferer = true; easy.FollowLocation = true; easy.Url = textBoxUrl.Text.Trim(); easy.CaInfo = @"------------.crt-----------------------------"; easy.CaPath = @"----------------.crt-------------------------"; easy.SslKey = @"-----------.key------------------------------"; easy.SslCert = @"----------------.crt-------------------------";

            easy.WriteFunction = OnWriteData;
            easy.Perform();
        }

provide me any example c# code for curl ssl 2 way communication

getting below error

"Unknown CA (48)"

Thanks.