There’s an issue with some packages in Homebrew regarding SSL certificates. Once in a while I need to remember which env variable do I have to set in order to install its upgrades with Homebrew. Libreoffice is one of them.

This is the answer in Stack Overflow:

echo insecure >> ~/.curlrc
HOMEBREW_CURLRC=1
export HOMEBREW_CURLRC
brew install --cask libreoffice

This way we’ll force Homebrew to read our preferences whenever it runs curl .