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

21 vues (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 13 Nov 2025
Modifié(e) : MathWorks Support Team le 26 Nov 2025 à 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)」

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur ソース管理の統合 dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!