What operating system are you using?
If you are using a Debian based OS,
sudo apt-get install -y --reinstall ca-certificates might work for you.
If you are using an Arch based OS,
sudo pacman -S ca-certificates might work for you.
If you are on another OS, please tell me.
Worked through this with a user on Discord. Turned out they needed to update their DNS server because their ISP was trying to do a MITM attack. You can update your DNS server by following this guide: Fixing timeout errors with Minecraft | playit.gg - support pages
You sent the wrong link.
this is the right link: Fixing "Unknown host" in Minecraft Java | playit.gg - support pages