TLS Certificate Expire Date
업데이트:
TLS Certificate Expire Date
-
Kubernetes Secret(kubernetes.io/tls)의 인증서 만료 날짜 확인
$ k get secrets -n <namespace> <secret_name> -o "jsonpath={.data['tls\.crt']}" | base64 -d | openssl x509 -enddate -noout notAfter=May 26 23:59:59 2023 GMT
-
Subject CN 확인
$ kubectl get secret -n <namespace> <secret_name> -o json | jq -r '.data."tls.crt"' | base64 -d | openssl x509 -noout -text | grep "Subject: CN = " | sed -E 's/\s+Subject: CN = ([^ ]*)/\1/g' www.example.com
댓글남기기