masroore / CurlSharp

CurlSharp - .Net binding and object-oriented wrapper for libcurl.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Curl SSL Two way communiation

gurumurthyjv opened this issue · comments

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.