I'm afraid you've landed in a Catch-22.
According to https://support.apple.com/HT211683 you have to first install macOS Mojave 10.14. Then you can install macOS Catalina 10.15
However these links are https. (secure) Safari on your Mac cannot access https sites because the security certificate has expired. Firefox can access https sites as it uses its own certificate, but it cannot open these links (which need to open the Mac App Store). So basically you cannot install the upgrade until you have installed the upgrade.
However, according again to that help page, you can download macOS Sierra 10.12 installer, which comes as a direct link to a disk image and which, oddly, is http not https. If you install this you may be able to access the Catalina installer, but I have a nasty feeling that you might still be stuck with the expired certificate and be back where you started: probably worth a try. (I'm not sure, but possibly Sierra is the oldest system not to have an expired certificate.)
There is a workaround for the certificate, but I emphasize that I haven't tried it and don't know whether it's effective or even advisable:
- Download the ISRG Root X1 certificate file from http://x1.i.lencr.org/
- Open the Keychain Access app and drag that file into the System folder of that app.
- Find the ISRG Root X1 certificate in System and double click on it, open the Trust menu and change "Use System Defaults" to "Always Trust", then close that and enter your password to confirm the change (if prompted).
Let's Encrypt DST Root CA X3 expiry Sept 30th 2021 | Certify The Web Docs
In the second line they presumably mean the 'System'>'Certificates' section of Keychain access.
If you don't feel like performing this fandango you could try Apple Support. I don't know whether they would be willing to provide you with a download of the required installers, but asking may be your only option, unless you can get someone with a more up to date Mac to download and save the installers (which if not stopped would install and then self-erase). An Apple Store might help. Either way you would need a suitably sized USB memory stick (around 5GB per installer).