1. sudo timedatectl set-ntp off
  2. sudo date --set="2021-11-30 09:03:00.000" (date before expiration)
  3. sudo docker exec -it rancher sh -c "rm /var/lib/rancher/k3s/server/tls/dynamic-cert.json"
  4. sudo docker exec -it rancher /bin/bash (running the kubectl inside the docker container for K3s)
  5. kubectl delete secret -n kube-system k3s-serving --insecure-skip-tls-verify (to bypass the expired certificate)
  6. sudo timedatectl set-ntp on
  7. sudo docker restart rancher