libgit2 / libgit2/libgit2sharp

A Certificate is required to complete the authentication

オープン
#1,152 コメント 9 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず CloneOptions.CredentialsProvider と、報告に示されている Repository.Clone の呼び出しを調べ、次に NativeMethods.git_clone と Ensure.ZeroResult がどのように失敗を表面化させるかを追跡します。比較可能なサーバーに対して HTTPS クローンを再現し、証明書要件がライブラリによって処理されているのか、環境によって処理されているのかを判定します。原因が確認され、文書化またはテスト済みの解決策が得られた時点で完了とします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, git
領域
authentication
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
15/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。