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/05/26 16:10] – Jean-Baptiste | tech:notes_git_et_cerfificats_https [2025/11/05 17:28] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| # Notes git et cerfificats HTTPS | # Notes git et cerfificats HTTPS | ||
| + | Voir aussi : | ||
| + | * [[Git over HTTPS - conf client]] | ||
| - | Ne pas vérifier le certificat HTTPS | + | |
| + | |||
| + | ## 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 | ~~~bash | ||
| Ligne 16: | Ligne 35: | ||
| ~~~ | ~~~ | ||
| - | |||
| - | Ajouter un certificat | ||
| ~~~bash | ~~~bash | ||
| - | # Récupérer le certificat racine | + | git config |
| - | openssl s_client | + | ~~~ |
| - | # Tester | ||
| - | curl --cacert ~/ | ||
| - | # Ajouter | + | ## Autres |
| - | git config --global http.sslCAInfo / | + | |
| + | Pour utiliser | ||
| + | ~~~bash | ||
| + | git config --global http.sslBackend schannel | ||
| ~~~ | ~~~ | ||
tech/notes_git_et_cerfificats_https.1748268629.txt.gz · Dernière modification : de Jean-Baptiste
