title: SharpSVN - Server certificate verification failed
body: <p>I use SharpSVN and I add a folder to the subversion. Then I try to commit it and I get this exception:</p>
  
  <p><code>SharpSvn.SvnRepositoryIOException: OPTIONS of 'https://sth.com/svn/blah/Documents': Server certificate verification failed: certificate has expired, certificate issued for a different hostname, issuer is not trusted</code></p>
  
  <p>As far as I see here:
  <a href="https://stackoverflow.com/questions/5165516/server-certificate-verification-failed">Server certificate verification failed</a></p>
  
  <p>..it seems that I must use a <code>--trust-server-cert</code> option, but I don't see this anywhere in the arguments of <code>SvnCommitArgs</code>.</p>
  
  <p>Also, I have found this:
  <a href="https://stackoverflow.com/questions/11652229/how-do-i-use-a-custom-certificate-authority-in-sharpsvn-without-installing-the-c">How do I use a custom Certificate Authority in SharpSvn without installing the certificate</a></p>
  
  <p>..where I see this:</p>
  
  <pre><code>client.Configuration.SetOption(...)
  </code></pre>
  
  <p>But I don't know what settings I must provide to make it commit without problems.</p>
  
  <p>Has anyone done anything similar?</p>
  
  <p><strong>EDIT</strong>:
  I have also tried doing this:</p>
  
  <pre><code>client.Authentication.SslServerTrustHandlers += new EventHandler&lt;SharpSvn.Security.SvnSslServerTrustEventArgs&gt;(Authentication_SslServerTrustHandlers);
  
      void Authentication_SslServerTrustHandlers(object sender, SharpSvn.Security.SvnSslServerTrustEventArgs e)
      {
          // Accept ceritificate here?
      }
  </code></pre>
  
  <p>But I don't understand what I must do inside the handler to accept the certificate... :(</p>