Certificate creation for multiple website on the same host and single tomcat 9.0.5

I have an existing website https://miniimagesvideos.com I created the certificate for the same in 2018. This is running on Ubuntu host with Tomcat 9.0.5. I want to deploy an additional website on the same tomcat/host. The domain name for the new website is https://compressjpeg.in. I did the following steps

  1. Moved the existing /etc/letsencrypt --> /etc/letsencrypt.old
  2. Run the command to upgrade ACME client
  3. Run the command "sudo certbot certonly -d miniimagesvideos.com -d www.miniimagesvideos.com -d compressjpeg.
    in -d www.compressjpeg.in"
  4. I entered the webroot as /opt/apache-tomcat-9.0.5/webapps/ for all the 4 prompts
    I am getting the following error

" Cleaning up challengesFailed authorization procedure. www.compressjpeg.in (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://compressjpeg.in/ [34.101.199.82]: "\n\n\n\nCompress JPEG - 50% to 95% compression\n<meta charset="utf-8">\n\n<meta http-equiv=""IMPORTANT NOTES: - The following errors were reported by the server: Domain: www.compressjpeg.in Type: unauthorized Detail: Invalid response from https://compressjpeg.in/ [34.101.199.82]: "\n\n\n\nCompress JPEG - 50% to 95% compression\n<meta charset="utf-8">\n\n<meta http-equiv="" To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address."

1 Like

Why do this step (#1)?:

Is that the correct webroot for all four sites?

Did you get the same error for all four names (or only for some)?

[&2* readers: Get involved; Be heard. It starts with: if you read something you like, then like it :heart:]

This is the only error which i can see in the logs

and