Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011566Dwarf FortressTechnical -- Generalpublic2020-06-24 18:512020-06-27 14:06
resolvedunable to reproduce 
0011566: Unable to download via homebrew cask due to expired cert
Unable to download Dwarf Fortress via homebrew cask on MacOS Catalina. Even using the force flag will not allow to bypass.
1. Download and install HomeBrew.
2. Attempt to download dwarf fortress
3. Get error.
Here is the brew error:
brew cask install --force dwarf-fortress
==> Caveats
During uninstall, your save data will be copied to /tmp/dwarf-fortress-save

==> Downloading https://www.bay12games.com/dwarves/df_47_04_osx.tar.bz2 [^]
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.
Error: Download failed on Cask 'dwarf-fortress' with message: Download failed: https://www.bay12games.com/dwarves/df_47_04_osx.tar.bz2 [^]
No tags attached.
Issue History
2020-06-24 18:51stegnerdNew Issue
2020-06-24 18:51stegnerdIssue Monitored: stegnerd
2020-06-24 18:51stegnerdIssue End Monitor: stegnerd
2020-06-25 00:15ZiusudraNote Added: 0040598
2020-06-25 00:16ZiusudraNote Edited: 0040598bug_revision_view_page.php?bugnote_id=0040598#r16501
2020-06-27 14:06lethosorNote Added: 0040601
2020-06-27 14:06lethosorStatusnew => resolved
2020-06-27 14:06lethosorResolutionopen => unable to reproduce
2020-06-27 14:06lethosorAssigned To => lethosor

2020-06-25 00:15   
(edited on: 2020-06-25 00:16)
I was able to use curl to download that file using that address on Arch Linux.

The www.bay12games.com certificate was issued Sunday, October 13, 2019 at 6:00:00 PM and is valid for a year. The expired certificate that is causing the error must be your local CA certificate for Sectigo Limited.

I have no idea how to update the certificate store on Mac.

If you go to https://www.bay12games.com/dwarves/ [^] , does the browser say the certificate is valid?

This would probably be easier to troubleshoot on the forums.

2020-06-27 14:06   
Confirmed that the cert for https://www.bay12games.com/dwarves/df_47_04_osx.tar.bz2 [^] is not expired (and is valid until 2020-10-13). In addition to what Ziusudra suggested, I would suggest double-checking your system time, although that would probably result in more issues if it was wrong.