gpt4 book ai didi

Linux/OpenSSL :Send find output to openssl

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:01:33 24 4
gpt4 key购买 nike

我正在尝试将 find 命令的输出发送到 OpenSSL,以便查明证书何时过期。

找到文件

find . -name \*.pem -type f

这会生成我想要的证书信息

openssl x509 -in certname.pem -noout -enddate

我可以合并这两个吗?

感谢您的帮助。

最佳答案

find . -name \*.pem -type f -execdir openssl x509 -in {} -noout -enddate \;

关于Linux/OpenSSL :Send find output to openssl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2747414/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com