aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-10-13 17:47:51 +0100
committerGitHub2016-10-13 17:47:51 +0100
commitbad14834998691f647f55e773d2562c52c822179 (patch)
treeeef10ea411ffd032e0cb07843dbf248a65555e12
parent8d6921d7f3bfc7be5770cfe2a30791e9a35d9cc2 (diff)
parentaa8242bb6649a94ba5bb1c67fbc64d5fc8a4fe56 (diff)
downloadbrew-bad14834998691f647f55e773d2562c52c822179.tar.bz2
Merge pull request #1285 from Blaisorblade/doctor-ssl-env
brew doctor: warn about SSL_CERT_FILE (#1284)
-rw-r--r--Library/Homebrew/diagnostic.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index f2260ed03..6f53bf0e1 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -617,6 +617,18 @@ module Homebrew
message
end
+ def check_ssl_cert_file
+ return unless ENV.key?("SSL_CERT_FILE")
+ <<-EOS.undent
+ Setting SSL_CERT_FILE can break downloading files; if that happens
+ you should unset it before running Homebrew.
+
+ Homebrew uses the system curl which uses system certificates by
+ default. Setting SSL_CERT_FILE makes it use an outdated OpenSSL, which
+ does not support modern OpenSSL certificate stores.
+ EOS
+ end
+
def check_for_symlinked_cellar
return unless HOMEBREW_CELLAR.exist?
return unless HOMEBREW_CELLAR.symlink?