{{tag>Brouillon Web Git TLS}} # 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:443 -servername git.acme.fr /dev/null | openssl x509 -outform PEM >~/.acme_root_ca.pem # Tester curl --cacert ~/.acme_root_ca.pem -I https://git.acme.fr # Ajouter la nouvelle CA git config --global http.sslCAInfo /home/monuser/.acme_root_ca.pem ~~~ ## 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 ~~~