Renew certificate - certonly


I’m currently trying to automate my renewal, but I’ve used the manual and certonly mode, because anything else won’t work on my OS (I’ve tried that). Now everytime I try to renew it, it asks, what I want to do:
./certbot-auto certonly --manual -d

It asks:
1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)

Is there a way or a parameter to select 2 as default without asking for it?


@Waishon, I don’t know if you’re waiting as long between renewals as Certbot expects, but you should be able to bypass that question by adding --force-renew to your Certbot command line.

Thanks! That works fine, but now it ask to “Press Enter to continue” after the meassage saying that you have to put the mentioned file in the web directory. Is there also a parameter to simulate the “Enter”?

I don’t think so; it’s part of the concept of manual (that you’re going to be sitting there as a human being interacting with it). Could you tell us more about what you’re trying to do or what kinds of problems you’ve encountered with the other modes?

On second thought, support for using external scripts has been added to manual and should be an option for you, if you’re familiar with shell scripting. This allows authenticating with scripts that perform the tasks and the manual authenticator can then be run non-interactively.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.