When using wget to download a web page, it returns the following error:
$this->bbcode_second_pass_code('', '
--2022-07-10 21:25:30-- https://google.com/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving google.com (google.com)... 2a00:1450:400e:80d::200e, 142.251.36.14
Connecting to google.com (google.com)|2a00:1450:400e:80d::200e|:443... connected.
The certificate has expired
')
It doesn't matter what URL I put in. I tried the following things to fix it:
- Update CA trust
$this->bbcode_second_pass_code('', 'update-ca-trust')
- Reinstall CA packages
$this->bbcode_second_pass_code('', 'pacman -S ca-certificates ca-certificates-mozilla ca-certificates-utils')
- Check if the time is correct.
- Updating all packages.
Do you know what is potentially wrong here?