As the output says, I am unable to renew certificates on my server. I am having difficulty understanding what may be the problem and how to resolve it.
My domain is: sudhirkhanger.com
I ran this command: sudo certbot renew
It produced this output:
Attempting to renew cert (sudhirkhanger.com) from /etc/letsencrypt/renewal/sudhirkhanger.com.conf produced an unexpected error: Failed authorization procedure. sudhirkhanger.com (http-01): urn:ietf:params:acme:
error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://sudhirkhanger.com/.well-known/acme-challenge/X9mXBPjIvtGRlDAy_oSBdUhZwQGch4qZjS__eo6WOXE: "<!DOCTYPE html>\n<html
lang=\"en-US\" class=\"no-js no-svg\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=devi", www.sudhirkhanger.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client la
cks sufficient authorization :: Invalid response from http://www.sudhirkhanger.com/.well-known/acme-challenge/v9bg2x1iwuid3r-rJ-CE0pyZE20E6wTboxZ3XegFf5c: "<!DOCTYPE html>\n<html lang=\"en-US\" class=\"no-js no
-svg\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=devi". Skipping.
My web server is (include version): httpd-2.4.6-88.el7.centos.x86_64
The operating system my web server runs on is (include version): CentOS Linux release 7.6.1810 (Core)
My hosting provider, if applicable, is: OVH
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): certbot 0.30.2
VirtualHost file
$ cat 000-default-vhost.conf
<VirtualHost *:80>
ServerAdmin MY-EMAIL
ServerName sudhirkhanger.com
ServerAlias www.sudhirkhanger.com
DocumentRoot /var/www/sudhirkhanger.com/public_html
ErrorLog logs/sudhirkhanger.com-wp-error.log
CustomLog logs/sudhirkhanger-wp-access.log combined
<Directory /var/www/sudhirkhanger.com/public_html>
Options FollowSymLinks Indexes
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin MY-EMAIL
ServerName sudhirkhanger.com
ServerAlias www.sudhirkhanger.com
DocumentRoot /var/www/sudhirkhanger.com/public_html
ErrorLog logs/sudhirkhanger.com-wp-error.log
CustomLog logs/sudhirkhanger.com-wp-access.log combined
<Directory /var/www/sudhirkhanger.com/public_html>
Options FollowSymLinks Indexes
AllowOverride All
</Directory>
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/sudhirkhanger.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sudhirkhanger.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/sudhirkhanger.com/chain.pem
</VirtualHost>
httpaccess file
$ cat .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress