Sta*_*sky 2 linux bash openssl find x509certificate
我正在尝试将 find 命令的输出发送到 OpenSSL,以便确定证书何时到期。
这将找到文件
find . -name \*.pem -type f
Run Code Online (Sandbox Code Playgroud)
这会生成我想要的证书信息
openssl x509 -in certname.pem -noout -enddate
Run Code Online (Sandbox Code Playgroud)
我可以合并这两个吗?
谢谢你的帮助。
find . -name \*.pem -type f -execdir openssl x509 -in {} -noout -enddate \;
Run Code Online (Sandbox Code Playgroud)