bin/add_my_git_ca_certs

6 lines
246 B
Bash
Executable File

#!/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