OpenShift证书批准及查询证书过期时间 wang

oc get csr | grep -i pending | awk '{print $1}' | xargs oc adm certificate approve

for i in /etc/origin/master/*.crt;do echo $i; openssl x509 -in $i -text -noout | egrep "Not Before|Not After";echo "-----------";done
for i in /etc/origin/node/*.crt;do echo $i; openssl x509 -in $i -text -noout | egrep "Not Before|Not After";echo "-----------";done
原文地址:https://www.cnblogs.com/wang-hongwei/p/15718681.html