How can I tell certbot-auto which domain to get a certificate for?

O see there is a -d option but I cannot find where to set it. certbot-auto works fine if I run it interactively.

My domain is:

I ran this command: /etc/cron.daily/certbot-auto

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache

Which names would you like to activate HTTPS for?


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel): An unexpected error occurred:
Traceback (most recent call last):
File “/opt/”, line 11, in
load_entry_point(‘letsencrypt==0.7.0’, ‘console_scripts’, ‘letsencrypt’)()
File “/opt/”, line 1364, in main
return config.func(config, plugins)
File “/opt/”, line 1118, in run
domains, certname = _find_domains_or_certname(config, installer)
File “/opt/”, line 421, in _find_domains_or_certname
domains = display_ops.choose_names(installer, question)
File “/opt/”, line 129, in choose_names
code, names = _filter_names(names, question)
File “/opt/”, line 181, in _filter_names
question, tags=sorted_names, cli_flag="–domains", force_interactive=True)
File “/opt/”, line 261, in checklist
File “/opt/”, line 185, in input
ans = input_with_timeout(message)
File “/opt/”, line 90, in input_with_timeout
raise EOFError

My web server is (include version): Apache 2.2.15

The operating system my web server runs on is (include version): CentOS 6

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

Hi @jscarville


/etc/cron.daily/certbot-auto -d

if you want a certificate with one domain name


/etc/cron.daily/certbot-auto -d -d

One certificate with two domain names.

Thank you. I will move the script out of cron.daily and invoke with -d from a crontab.

From crontab, you can use certbot renew which renews any existing certificates that are less than 30 days from expiry. It’s specifically meant to be run frequently from a crontab.

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