tech:notes_git_et_cerfificats_https
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_git_et_cerfificats_https [2025/11/05 11:33] – Jean-Baptiste | tech:notes_git_et_cerfificats_https [2025/11/05 17:28] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes git et cerfificats HTTPS | ||
| + | |||
| + | Voir aussi : | ||
| + | * [[Git over HTTPS - conf client]] | ||
| + | |||
| + | |||
| + | |||
| + | ## Ajouter un certificat | ||
| + | |||
| + | ~~~bash | ||
| + | # Récupérer le certificat racine | ||
| + | openssl s_client -showcerts -connect git.acme.fr: | ||
| + | |||
| + | # Tester | ||
| + | curl --cacert ~/ | ||
| + | |||
| + | # Ajouter la nouvelle CA | ||
| + | git config --global http.sslCAInfo / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Ne pas vérifier le certificat HTTPS (déconseillé) | ||
| + | |||
| + | ~~~bash | ||
| + | git -c http.sslVerify=false clone https://url | ||
| + | # ou | ||
| + | env GIT_SSL_NO_VERIFY=true git clone https://url | ||
| + | |||
| + | cd plop | ||
| + | git config http.sslVerify false | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | git config --global http.sslVerify false | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | Pour utiliser la PKI de windows | ||
| + | ~~~bash | ||
| + | git config --global http.sslBackend schannel | ||
| + | ~~~ | ||
| + | |||
