Skip to content
Snippets Groups Projects
Commit 2f85acfe authored by Jack Nagel's avatar Jack Nagel
Browse files

doctor: warn about expired SSL certs on Leopard


Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent e0c53c56
No related branches found
No related tags found
No related merge requests found
......@@ -759,6 +759,23 @@ def check_git_status
end
end
def check_for_leopard_ssl
if MacOS.leopard? and not ENV['GIT_SSL_NO_VERIFY']
puts <<-EOS.undent
The version of libcurl provided with Mac OS X Leopard has outdated
SSL certificates.
This can cause problems when running Homebrew commands that use Git to
fetch over HTTPS, e.g. `brew update` or installing formulae that perform
Git checkouts.
You can force Git to ignore these errors by setting $GIT_SSL_NO_VERIFY.
export GIT_SSL_NO_VERIFY=1
EOS
end
end
module Homebrew extend self
def doctor
old_stdout = $stdout
......@@ -802,6 +819,7 @@ module Homebrew extend self
check_tmpdir
check_missing_deps
check_git_status
check_for_leopard_ssl
ensure
$stdout = old_stdout
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment