Question
List all the Server Certificates and CA Certificates used in the cluster along with their expiry date. Save the output to /tmp/all-certs.txt
Answer
You can use kubeadm for that:
kubeadm certs check-expiration
kubeadm certs check-expiration > /tmp/all-certs.txt