プロジェクトの Git でクライアントの証明書は利用できますか?

17 Ansichten (letzte 30 Tage)
MathWorks Support Team
MathWorks Support Team am 13 Nov. 2025
Bearbeitet: MathWorks Support Team am 26 Nov. 2025 um 8:36
GitLab側で発行済の「証明書AAA.crt」「秘密鍵AAA.key」「パスフレーズの手動入力」を使用して、MATLABプロジェクトをGitLabでソース管理する方法を教えてください。
現状、以下のように設定すると、エラーが発生します。
設定コマンド​
git = settings().matlab.sourcecontrol.git;
git.PrivateKeyFile.PersonalValue = "Full path to AAA.key";
git.PublicKeyFile.PersonalValue = "Full path to AAA.crt";
git.KeyHasPassphrase.PersonalValue = true;
エラー​
「could not initialize security context:(-1x2)」

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 26 Nov. 2025 um 0:00
現状、MATLAB はクライアント証明書の使用をサポートしていない状況です。MATLAB では libgit2 というライブラリを使用しております。libgit2 は現時点ではクライアント証明書に対応しておりません。
(libgit2 に関する詳細:https://github.com/libgit2/libgit2/issues/4204
回避策は、クライアント証明書に対応している Git クライアントを使用して、clone / fetch / push 操作を行う方法となります。

Weitere Antworten (0)

Kategorien

Mehr zu ソース管理の統合 finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Produkte


Version

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!