# https://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate#11622001

# copy public key from remote git host into pub file:
    
~/.ssh/id_rsa_custom1.pub

# edit global git config

~/.gitconfig

# add certificate

[http "https://example.com"]
        sslCAInfo = ~/.ssh/id_rsa_custom1.pub
        sslCAPath = ~/.ssh/
        sslVerify = true