This is the initial installation and first issuance of a certificate on this host.
- Hostname: wwui.usgwh.com
- OS: Ubuntu 16.04.2 LTS, up to date
- HTTP server: Apache 2.4.17
- certbot 0.11.1
I started with three Apache configuration files in sites-available:
- 000-default.conf
- wwui.conf
- wwui-offline.conf
Issued sudo certbot --apache
Output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated) (Enter ‘c’ to cancel):wwui.usgwh.com
Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to
cancel):dpatterson@dplhenterprises.com
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf. You must agree
in order to register with the ACME server at
https://acme-v01.api.letsencrypt.org/directory
(A)gree/©ancel: a
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let’s Encrypt project and the non-profit
organization that develops Certbot? We’d like to send you email about EFF and
our work to encrypt the web, protect its users and defend digital rights.
(Y)es/(N)o: n
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for wwui.usgwh.com
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Waiting for verification…
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0000_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0000_csr-certbot.pem
Created an SSL vhost at /etc/apache2/sites-available/000-default-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/000-default-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/000-default-le-ssl.conf
I was expecting certbot to modify one of those, preferably wwui.conf, since that’s the actual configuration file.
Instead it created 000-default-le-ssl.conf and specified the document root as /var/www/html which is not correct.
I obviously did something wrong, so:
- How do I back this out?
- How do I run certbot and tell it what configuration file to modify?
Thanks in advance,
Dave