hi,
I am an experienced developer but have run into an issue setting up lets encrypt on an Ubuntu bionic virtual private server.
My domains are:
gordonbanderson.com
arbroathunited.cc
Now I had this working with just gordonbanderson.com. The command I ran was
certbot certonly -v --staging --no-eff-email --webroot --preferred-challenges http --email "gordon.b.anderson+gba@gmail.com" --agree-tos -d gordonbanderson.com -d www.gordonbanderson.com -w /var/www/gba/public/
When I added arbroathunited.cc as a domain to the same IP address the above command fails, when I try to create a certificate for gordonbanderson.com it tries to authenticate against the other domain associated with the server, arbroathunited.cc:
Output from the above command after adding the second domain, https://pastebin.com/6ANANPDz
My web server is (include version):
nginx 1.17.4
The virtual hosts are responding correct, I added the same filename to both servers with different text, and the responded as expected.
The operating system my web server runs on is (include version):
Alpine Linux 3.10 (note I am using docker with multiple containers). Certbot is running Debian stretch
My hosting provider, if applicable, is:
Digital Ocean
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, using SSH
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
0.28.0, certbot
The attempt to authorize gordonbanderson.com against the webroot of arbroathunited.cc, which is failing, is where I am confused.
Any pointers appreciated
Regards
Gordon