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

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)」

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 11월 26일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 ソース管理の統合에 대해 자세히 알아보기

제품

릴리스

R2024b

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!