#!/bin/bash

echo "================================"
echo "[ apiserver.crt ]"
openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -dates | grep notAfter
echo "================================"
echo "[ apiserver-kubelet-client ]"
openssl x509 -in /etc/kubernetes/pki/apiserver-kubelet-client.crt -noout -dates | grep notAfter
echo "================================"
echo "[ ca ]"
openssl x509 -in /etc/kubernetes/pki/ca.crt -noout -dates | grep notAfter
echo "================================"
echo "[ front-proxy-ca ]"
openssl x509 -in /etc/kubernetes/pki/front-proxy-ca.crt -noout -dates | grep notAfter
echo "================================"
echo "[ front-proxy-client ]"
openssl x509 -in /etc/kubernetes/pki/front-proxy-client.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 "================================"
