libgit2 / libgit2/libgit2sharp
A Certificate is required to complete the authentication
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
When I trying to clone a repository, I am getting an Unhandled error message.
"send request failed: A certificate is required to complete the authentication"
Please let me know what wrong I am doing.
CloneOptions co = new CloneOptions();
co.CredentialsProvider = (_url, _user, _cred) => new UsernamePasswordCredentials { Username = "abc", Password = "abc@123" };
Repository.Clone("https://abc.com/stash/scm/work.git", @"D:\EP", co);
public static RepositorySafeHandle git_clone(
string url,
string workdir,
ref GitCloneOptions opts)
{
RepositorySafeHandle repo;
int res = NativeMethods.git_clone(out repo, url, workdir, ref opts);
Ensure.ZeroResult(res);
return repo;
}
Error line is in bold
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining CloneOptions.CredentialsProvider and the Repository.Clone call shown in the report, then trace how NativeMethods.git_clone and Ensure.ZeroResult surface the failure. Reproduce the HTTPS clone against a comparable server and determine whether the certificate requirement is handled by the library or the environment; done requires a confirmed cause and a documented or tested resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100