#!/bin/bash

echo "================================"
echo "[ ca ]"
openssl x509 -in /etc/kubernetes/pki/ca.crt -noout -dates | grep notAfter
echo "================================"
echo "[ kubelet ]"
openssl x509 -in /var/lib/kubelet/pki/kubelet.crt -noout -dates | grep notAfter
echo "================================"
echo "[ etcd_ca ]"
openssl x509 -in /etc/ssl/etcd/ssl/ca.pem -noout -dates | grep notAfter
echo "================================"
