my git ca cert adding for e.g. ubuntu

This commit is contained in:
Dirk Alders 2021-12-28 14:25:13 +01:00
parent 767bdb240f
commit c2d6f5916b

5
add_my_git_ca_certs Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
#
echo -n | openssl s_client -showcerts -connect git.mount-mockery.de:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee /usr/local/share/ca-certificates/mount-mockery.crt
sudo update-ca-certificates