diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 1882894732..5d011b3210 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -573,6 +573,7 @@ setup_ca_certificates() { then export SSL_CERT_FILE="${HOMEBREW_PREFIX}/etc/ca-certificates/cert.pem" export GIT_SSL_CAINFO="${HOMEBREW_PREFIX}/etc/ca-certificates/cert.pem" + export GIT_SSL_CAPATH="${HOMEBREW_PREFIX}/etc/ca-certificates" fi } setup_ca_certificates diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 0fbee44fca..98e8b86834 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -800,6 +800,7 @@ class FormulaInstaller if formula.name == "ca-certificates" && !DevelopmentTools.ca_file_handles_most_https_certificates? ENV["SSL_CERT_FILE"] = ENV["GIT_SSL_CAINFO"] = formula.pkgetc/"cert.pem" + ENV["GIT_SSL_CAPATH"] = formula.pkgetc end # use installed curl when it's needed and available