How to fix the error 'SSL certificate problem: certificate has expired' from closing projects on Exploratory Public on Mac

If you see an Error Report dialog with an error message ‘SSL certificate problem: certificate has expired’ at the closing of projects on Exploratory Public running on macOS Mojave or older, please take a look at this Note for the cause and solution of the problem.