# A kubeadm apiserver certificate still has 300 days left. What does kubeadm certs renew apiserver do?

Kubernetes, Hard (Expert), Commands. https://k8wiz.com/uquiz/a-kubeadm-apiserver-certificate-still-has-300-days-left-what-does-kubeadm-certs-renew-apiserver-do

- A. Exits without changes because the certificate is not close to expiry
- B. Renews it only when the remaining validity is shorter than 180 days
- C. Issues a new certificate anyway, since renewal ignores the expiry date
- D. Extends the current certificate's notAfter date without a new key

**Answer:** Issues a new certificate anyway, since renewal ignores the expiry date

**Explanation:** kubeadm certs renew runs unconditionally, regardless of the certificate's expiration date. It takes the subject and SANs from the existing certificate and signs a new one with the local CA, valid for certificateValidityPeriod (one year by default). A signed certificate cannot have its notAfter date edited in place, so renewal always means a new certificate.
