# After running kubeadm certs renew all, openssl still shows the old expiry date on the certificate served on port 6443. What is the most likely reason?

Kubernetes, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/after-running-kubeadm-certs-renew-all-openssl-still-shows-the-old-expiry-date-on-the-certificate-served-on-port-6443-what-is-the

- A. The kube-apiserver static pod was not restarted to load the new files
- B. The renewal only rewrites the kubeadm-config ConfigMap in kube-system
- C. The new certificate stays inactive until the old one actually expires
- D. kubeadm writes renewed certificates to /var/lib/kubelet/pki by default

**Answer:** The kube-apiserver static pod was not restarted to load the new files

**Explanation:** kubeadm certs renew replaces the files on disk, but the running kube-apiserver keeps the old certificate in memory until it restarts. kubeadm ends with a reminder to restart kube-apiserver, kube-controller-manager, kube-scheduler and etcd. Because these are static pods, you restart them by moving their manifest out of /etc/kubernetes/manifests and back after the kubelet's fileCheckFrequency (20s by default).
