Cannot renew SSL certs for either of my two domains

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: I’d prefer not to say

I ran this command: sudo certbot renew --dry-run

It produced this output:

root@ubuntu1804lts:/var/www/mmm.com/public_html# sudo certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/mmm.com.conf


Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for mmm.com
http-01 challenge for www.mmm.com
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (mmm.com) from /etc/letsencrypt/renewal/mmm.com.conf produced an unexpected error: Failed authorization procedure. mmm.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://www.mmm.com/.well-known/acme-challenge/-EVVlgh_KdA2colPkJ78Gvi3OvEjovtFxgYFmokI [159.203..]: “\n<html lang=“en-US” class=“scheme_brown”>\n\n\n\tPage not found – mmm\n<styl”, www.mmm.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://www.mmm.com/.well-known/acme-challenge/nGY6H1aWq_aWct1p0RRfbtRmZjoH9HUTS3-KgKcY [159.203..]: “\n<html lang=“en-US” class=“scheme_brown”>\n\n\n\tPage not found – mmm\n<styl”. Skipping.


Processing /etc/letsencrypt/renewal/cvr.com.conf


Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for cvr.com
http-01 challenge for mmm.com
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (cvr.com) from /etc/letsencrypt/renewal/cvr.com.conf produced an unexpected error: Failed authorization procedure. mmm.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://www.mmm.com/.well-known/acme-challenge/n5akkMyBUmB5Z59KNAQsZUVa19u6LA1YsQ-9mchk [159.203..]: “\n<html lang=“en-US” class=“scheme_brown”>\n\n\n\tPage not found – mmm\n<styl”. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/mmm.com/fullchain.pem (failure)
/etc/letsencrypt/live/cvr.com/fullchain.pem (failure)


** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/mmm.com/fullchain.pem (failure)
/etc/letsencrypt/live/cvr.com/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)


2 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:

My web server is (include version): Apache 2.4.29

The operating system my web server runs on is (include version): ubunutu 18.04 LTS

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

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): 0.26.1

Any help is appreciated- I apologize in advance for redacting my domains. I only have one A record and it is pointing to the correct IP address of the server.

Here is one of my VHosts (they’re identical with the exception of the domain name)

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName cvr.com
ServerAlias www.cvr.com
DocumentRoot /var/www/cvr.com/public_html

    <Directory /var/www/cvr.com/public_html>
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

RewriteEngine on
RewriteCond %{SERVER_NAME} =cvr.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

~

I manually created the .well-known/acme-challenge folders in each of the sites root directories. I assigned permissions to them using

sudo chown -R www-data:www-data /var/www/cvr.com;
sudo find /var/www/cvr.com/ -type d -exec chmod 750 {} ;
sudo find /var/www/cvr.com/ -type f -exec chmod 640 {} ;

Is this your domain name?

cvr.com appears to be hosted on SoftLayer, not DigitalOcean.

Edit: And it has no older Let’s Encrypt certificates.

I do apologize, but I had removed the domain names. I understand that it makes support quite difficult to provide. I went ahead and used dns challenge for verification (which worked) rather than the acme challenge. I never was able to figure out why it was failing.

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