git cert script added

This commit is contained in:
Dirk Alders 2022-04-21 22:30:57 +02:00
parent f09d885e7c
commit 8eca043a62

8
gitcert Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
#
if [[ $UID != 0 ]]; then
sudo $0
else
cp /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.orig-git
echo $(echo -n | openssl s_client -showcerts -connect mount-mockery.de:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p') >> /etc/ssl/certs/ca-certificates.crt
fi