How to validate the cert by command line or script

11/7/2021

How can I validate certificates obtained by kubernetes cli

kubectl get secret public-tls -n test -o jsonpath='{.data.tls\.crt}' | base64 -D | openssl x509 -text -noout

It gives me some certs. How can I check the validity of the certs

-- cloudbud
kubernetes
ssl-certificate

0 Answers