After I applied Apple latest SSL security patch, Homebrew did not want to update the git repository anymore. I got the error “SSL certificate problem: Invalid certificate chain”.
How to fix this:
Open the Keychain Access app
Go to Preferences
Reset the default Keychain
And it works again!