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

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
posted @ 2021-12-22 11:17  wanghongwei-dev  阅读(359)  评论(0编辑  收藏  举报