views:

147

answers:

1

Im using sharpSvn for .net 2.0, i need to get change history for a particular svn user, i used the following code but it gives error. "issuer is not trusted"

here is the code im using

using(SvnClient client = new SvnClient())
{

  client.Authenticator.Clear();
  client.Authenticator.UserNameHandlers +=
               delegate(object sender, SvnUserNameEventArgs e)
               {
                   e.UserName = "svnuser";
               };
    client.Authenticator.UserNamePasswordHandlers +=
                delegate(object sender, SvnUserNamePasswordEventArgs e)
                {
                    e.UserName = "svnuser";
                    e.Password = "password";
                };

     try {
         client.Log(new Uri(target), Result);

     }
     catch
     {
     }    
}

where "Result" is delegate method

+1  A: 

This error indicates that the SSL Server certificate you use for the https:// connection couldn't be verified.

You can handle the .Authentication.SslServerTrustHandlers event to say that you trust the certificate.

(You are probably using a pretty old SharpSvn release, as the .Authenticator property has been obsoleted for a long time)

Bert Huijben
Bert, thanks a lot for help
Shahbaz