curl: (60) SSL certificate problem after upgrading to 8.4.2

Hi all,

something broke after upgrading to v8.4.2
─────────────────────────────────────────────────────
DietPi v8.4.2 : 22:29 - Fri 05/06/22
─────────────────────────────────────────────────────

  • Device model : RPi 3 Model B (aarch64)
  • CPU temp : 44 °C / 111 °F : Optimal temperature
  • LAN IP : 192.168.0.10 (eth0)
    curl: (60) SSL certificate problem: format error in certificate’s notBefore field
    More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
─────────────────────────────────────────────────────

dietpi@IrelandPi:~$ curl https://google.com
curl: (60) SSL certificate problem: format error in certificate’s notBefore field
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Can you please help me fix it?

Is the time correct? date

Hi,

Yes, time is correct. Everything was working fine for months until I did dietpi-update.
By the way. thanks for the help. I reinstalled it.
Now it works again

“format error” :thinking:. Could you try:

update-ca-certificates -f

And are there I/O or filesystem errors reported by the kernel?

dmesg -l emerg,alert,crit,err

I guess OP already created an new fresh install. Probably best idea to overcome the data corruption. :thinking:

Right, info remains for next time of others :slight_smile:.

Guys, trust me I tried everything. I gave up after 3 days of troubleshooting.
It would have been nice to understand what’s actually broke after the upgrade.
I did apt install reinstall curl openssl, re download cacert from curl, added cacert path in env… nothing worked

But it works now after reinstall, right? Strange curl error, probably some broken library file :thinking:.