【发布时间】:2021-04-07 23:18:42
【问题描述】:
拜托,我需要在 centos 盒子的任何目录中找到所有证书文件。
我用“exec”命令和 grep “not after”尝试了“find”。这仅显示证书的到期日期,但我也需要找到实际文件:
find /etc/ -type f -exec openssl x509 -in {} -noout -text \; |
grep -i "not after"
什么命令也可以列出证书文件及其到期日期的内容?
【问题讨论】:
标签: linux shell awk grep certificate