A surprising share of 'TLS is broken' tickets on fresh virtual machines come down to the clock. Certificates have a validity window, and a machine that boots minutes or hours off will reject perfectly good chains.
Run timedatectl and confirm that the system clock is synchronized. If it is not, enable your NTP client before touching anything else.
Snapshots and restored images carry a stale time. Hypervisors usually correct it, but not always before the first network call.