libgit2 / libgit2/libgit2sharp
A Certificate is required to complete the authentication
還沒有人認領這個 Issue。
- 主要語言
- C#
- 星號
- 3.5k
- 分支
- 925
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先檢查 CloneOptions.CredentialsProvider 以及報告中顯示的 Repository.Clone 呼叫,然後追蹤 NativeMethods.git_clone 和 Ensure.ZeroResult 如何呈現該失敗。在可比的伺服器上重現 HTTPS 複製,並判定憑證要求是由程式庫處理還是由環境處理;必須確認原因並提供已記錄或經測試的解決方案,才算完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp, git
- 領域
- authentication
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 15/100