Skip to content

Instantly share code, notes, and snippets.

@ftabashir
Last active August 30, 2017 06:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftabashir/f06287693192b946799f9645bd2781f5 to your computer and use it in GitHub Desktop.
Save ftabashir/f06287693192b946799f9645bd2781f5 to your computer and use it in GitHub Desktop.
this is a how to solve for this git problem: fatal: unable to access 'https://domain.com/path/to/git': SSL certificate problem: unable to get local issuer certificate. REFERENCE: to see original post visit here: https://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate/26785963#26785963
SSL Certificate error:
- To permanently accept a specific certificate
1. Initial clone
- GIT_SSL_CAINFO=/path/to/cert.pem git clone https://repo.or.cz/org-mode.git
2. Ensure all future interactions with origin remote also work
- cd my-repo-directory
- git config http.sslCAInfo /etc/ssl/certs/rorcz_root_cert.pem
- To disable TLS/SSL verification for a single git command
git -c http.sslVerify=false clone https://domain.com/path/to/git
- To disable SSL verification for that singular repository
git config http.sslVerify false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment