Don't use Firefox on these links,,,
https://support.apple.com/kb/sp765?locale=en_US
https://itunes.apple.com/app/macos-high-sierra/id1246284741?mt=12
https://support.apple.com/kb/SP777?locale=en_US
https://itunes.apple.com/us/app/macos-mojave/id1398502828?mt=12
If you get a corrupted message...
Naw, not damaged, it's just that you have an old copy already in Applications, there are 2 cures...
Disconnect from the Internet & set the Date back to 2014, then you can run the Install MacsOS High Sierra App in Applications, so expired Certificates are not expired.
Or... trash the Install MacsOS High Sierra.app in Applications then a new copy more recent version can be downloaded.
Naw, not damaged, it's just that you have an old copy already in Applications, there are 2 cures...
Disconnect from the Internet & set the Date back to 2015, then you can run the Install MacsOS Mohave App in Applications, so expired Certificates are not expired.
Or... trash the Install MacsOS Mojave.app in Applications then a new copy can be downloaded.