[Solved] Server certificate verification failed

Hi,
I am trying to install on pi 3B+ and getting this error when installing the software.
Not sure what to change/edit to fix. Please advise.

DietPi-Software: G_AGUP
│ - Exit code: 100
│ - DietPi version: v6.17.12 (Fourdee/master) | HW_MODEL:3 | HW_ARCH:2 | DISTRO:4
│ - Image creator: DietPi Core Team
│ - Pre-image: Raspbian Lite

│ Log file contents:
│ Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
│ Ign:2 https://archive.raspberrypi.org/debian stretch InRelease
│ Err:3 https://archive.raspberrypi.org/debian stretch Release
│ server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt

Thanks,
Steve

I fixed this by doing this, was found on github under issues.

date
/DietPi/dietpi/func/run_ntpd 1

That was why it failed, my system had old date and time.

Thanks,
Steve

piperman
Jep, ssl/cert check/verification issues are usually due to system clock being out of date. We really need to check for those errors within our (APT) error handler and offer run_ntpd and changing NTP settings to resolve :thinking:.