Ibreoffice-language-pack ssl error

When attempting to upgrade the libreoffice non-english default language I get the following error:

$ brew cask upgrade libreoffice-language-pack
==> Upgrading 1 outdated package:

libreoffice-language-pack 6.4.4 -> 6.4.5
==> Upgrading libreoffice-language-pack
==> Caveats
You need to run LibreOffice at least once before installing
language pack to avoid app verification error.

==> Downloading https://download.documentfoundation.org/libreoffice/stable/6.4.5
######################################################################## 100.0%- -=#=-#  #    #
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
==> Purging files for version 6.4.5 of Cask libreoffice-language-pack
Error: Download failed on Cask 'libreoffice-language-pack' with message: Download failed:         https://download.documentfoundation.org/libreoffice/stable/6.4.5/mac/x86_64/LibreOffice_6.4.5_MacOS_x86-64_langpack_de.dmg
$

The Libre office SSL certificate seems to have expired. Nothing homebrew can do here.

If I download the file using safari and move it into the place required as given using

brew cask --cache libreoffice-language-pack

Everything works fine. So the download error only happens using curl.

The main LibreOffice download server’s certificate is perfectly fine. However, the final download URL (like the one above) will redirect to a location-specific mirror, and it’s almost certainly that mirror whose certificate has expired.

You can check it for yourself by looking in your browser’s Downloads list for the final download URL (being in Singapore, my download of your URL goes to https://download.nus.edu.sg/mirror/tdf/libreoffice/stable/6.4.5/mac/x86_64/LibreOffice_6.4.5_MacOS_x86-64_langpack_de.dmg). Then paste the domain name of that URL into https://www.sslshopper.com/ssl-checker.html and see whether that certificate has expired.