This often happens due to an expired security certificate. To fix this, disconnect from the internet, open Terminal in the installer environment, and set the system date back to 2017 using the command date 0101010117 .
Once you've found a reliable source, click on the download link to obtain the macOS Sierra 10.12 DMG file. The file size is approximately 5.2 GB.