Skip to content

Instantly share code, notes, and snippets.

@devhero
Created April 23, 2018 09:23
Show Gist options
  • Save devhero/da6695bf57f2a200a1ade13b8131f8ee to your computer and use it in GitHub Desktop.
Save devhero/da6695bf57f2a200a1ade13b8131f8ee to your computer and use it in GitHub Desktop.
setuptools git ssl
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment