git cert script added
This commit is contained in:
parent
f09d885e7c
commit
8eca043a62
8
gitcert
Executable file
8
gitcert
Executable 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
|
Loading…
x
Reference in New Issue
Block a user