gpt4 book ai didi

bash - 如何在没有交互的情况下安装 Certbot (Let's Encrypt)?

转载 作者:行者123 更新时间:2023-11-29 08:53:44 26 4
gpt4 key购买 nike

我正在编写一个 bash 脚本,它在新安装的服务器中引导整个项目基础设施,我想使用 letcecrypt certbot 配置 ssl 安装。在我执行行之后:

certbot --nginx -d $( get_server_name ) -d www.$( get_server_name ).com

系统提示我问几个问题。 certbot 可以在没有任何交互的情况下运行,同时将一些参数作为参数或其他东西传递吗?

最佳答案

您可以通过添加以下选项“静默”运行 certbot:

--non-interactive --agree-tos -m webmaster@example.com

此处提供配置选项的完整列表:

https://certbot.eff.org/docs/using.html

关于bash - 如何在没有交互的情况下安装 Certbot (Let's Encrypt)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49172841/

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