How to avoid vhost scanning while obtaining the certificate: (Which command will provide/obtaining the certificate without asking any input)

Hi,

I am using Certbot-auto option to enable SSL for my sites, I am able to generate the SSL certificates. However need help on below point:

  1. How to avoid vhost scanning while obtaining the certificate: (Which command will provide/obtaining the certificate without asking any input)

My domain is: www.wbcstest04.com
I ran this command: sudo ./certbot-auto --apache certonly -d www.wbcstest04.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for www.wbcstest04.com

We were unable to find a vhost with a ServerName or Address of www.wbcstest04.com.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
1: ssl | secure.dev-webbuilder | HTTPS | Enabled
2: ssl | api.dev-webbuildercs. | HTTPS | Enabled
3: ssl | www.cpademosite.com | HTTPS | Enabled
4: virtualhosts.conf | | | Enabled
5: virtualhosts.conf | dev-webbuildercs.com | | Enabled
6: virtualhosts.conf | www.dev-webbuildercs. | | Enabled
7: virtualhosts.conf | resources.dev-webbuil | | Enabled

Note: I have provided the option "c" then its generated the certificate.

My web server is (include version): Server version: Apache/2.2.22 (Ubuntu)

The operating system my web server runs on is (include version):
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise

I can login to a root shell on my machine (yes or no, or I don’t know): Yes
Need help to resolve the issue.

What part of the error message presented by certbot isn’t clear to you?

I was not referring to any error. Is there any possibility that we can avoid the below prompt and generate the certificate as I am providing -d option to generate the certificate.

===================================
We were unable to find a vhost with a ServerName or Address of www.wbcstest04.com.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
1: ssl | secure.dev-webbuilder | HTTPS | Enabled
2: ssl | api.dev-webbuildercs. | HTTPS | Enabled
3: ssl | www.cpademosite.com | HTTPS | Enabled
4: virtualhosts.conf | | | Enabled
5: virtualhosts.conf | dev-webbuildercs.com | | Enabled
6: virtualhosts.conf | www.dev-webbuildercs. | | Enabled
7: virtualhosts.conf | resources.dev-webbuil | | Enabled
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel):

Is there a possibility as mentioned below:
$ sudo ./certbot-auto --apache certonly -d www.wbcstest04.com (Hit enter)
generate certificate without prompting for option. Please suggest a option.

Try the option -n/--non-interactive:

https://certbot.eff.org/docs/using.html#certbot-command-line-options

-n did work for me. Thank you. Below command I have used to generate the certs.
sudo ./certbot-auto certonly --apache -n -d domainname

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