Nächste Überarbeitung | Vorhergehende Überarbeitung |
wiki:programme:git:tipps_und_tricks [2017/08/09 14:34] – Externe Bearbeitung 127.0.0.1 | wiki:programme:git:tipps_und_tricks [2020/01/28 10:54] (aktuell) – [Git hinter einem Proxy] wikiadmin |
---|
''fatal: unable to access <nowiki>'https://<gitserver>/<user>/<repo>.git/':</nowiki> SSL certificate problem: self signed certificate in certificate chain'' | ''fatal: unable to access <nowiki>'https://<gitserver>/<user>/<repo>.git/':</nowiki> SSL certificate problem: self signed certificate in certificate chain'' |
| |
__SSL-Fehler ignorieren:__ | ==== SSL-Fehler ignorieren: ==== |
<file>git config http:sslVerify false</file> | <file>git config http:sslVerify false</file> |
__SSL-Zertifikate einbinden:__ | ==== SSL-Zertifikate in git einbinden: ==== |
* http.sslCAInfo | * http.sslCAInfo |
* http.sslCert | * http.sslCert |
* http.sslKey | * http.sslKey |
| ==== SSL-Zertifikate systemweit bekannt manchen ==== |
| |
| Zertifikate herunterladen, entpacken und in das Verzeichnis ''/etc/pki/trust/anchors/'' verschieben. \\ |
| Unter SUSE<file>update-ca-certificates</file> ausführen. |
| |
| Fertig |
| |
==== Quellen ==== | ==== Quellen ==== |
* [[http://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate]] | * [[http://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate]] |
* [[http://stefan.ploing.de/2011-05-27-git-zugriff-https-und-client-zertifikaten/]] | * [[http://stefan.ploing.de/2011-05-27-git-zugriff-https-und-client-zertifikaten/]] |
| |
| ===== Git hinter einem Proxy ===== |
| |
| __Einmalig__ |
| <file>git -c http.proxy="http(s)://<username>:<passord>@<proxy>:<Port>/" clone <git-url></file> |
| Alle Informationen werden dann in das verzeichnis ''.git/config'' übernommen. |
| |
| |
| __Global definiert__ |
| <file>git config --global http.proxy "<user>:<password>@<Proxy>:<Port>"</file> |
| |
| __Lokal definiert__ |
| <file>git config http.proxy "<user>:<password>@<Proxy>:<Port>"</file> |
| |
| |
| <note important>Sollte hier noch ein SSL-Problem bestehen, kann man mit ''<nowiki>--</nowiki>config http.sslverfy="false"'' die SSL-Verschlüsselung "umgehen".</note> |
| |
===== Git per SSH-Key ===== | ===== Git per SSH-Key ===== |