Configure Git to use self-signed certificates
Go to file
Patrick 36bb115eb0 Updated command to configure git to specify domain 2025-03-26 23:42:09 +01:00
README.md Updated command to configure git to specify domain 2025-03-26 23:42:09 +01:00
git-cert.pem Uploaded certificate to repo 2025-03-26 22:31:55 +01:00

README.md

Command to configure git to accept the self signed certificate

curl -k https://git.fritz.box/Patrick/gitea-git-config/raw/branch/main/git-cert.pem > $HOME/.git.certs.pem
git config --global http.https://git.fritz.box.sslCAInfo $HOME/.git.certs.pem

Or as one command:

curl -k https://git.fritz.box/Patrick/gitea-git-config/raw/branch/main/git-cert.pem > $HOME/.git.certs.pem && git config --global http.https://git.fritz.box.sslCAInfo $HOME/.git.certs.pem