自动删除所有未使用的 certbot 证书

Sat*_*nix 5 nginx certbot

我知道certbot certificates给了我所有可用证书的完整列表。

我也知道certbot delete做了同样的事情,然后让我能够删除一个。

但是,考虑到 certbot 与 nginx 和 apache 集成,有没有办法让它删除当前 nginx 未使用的所有证书

另一种方法是打开 中的所有配置/etc/nginx/site-enabled,记下所有正在使用的证书,运行certbot certificates,记下所有未使用的证书并在列表中一一找到它们certbot delete