11
Miscellaneous / Let's Encrypt web site cert will not renew
« Last post by norman on January 09, 2022, 08:00:04 pm »On Linux to see certificates type -
sudo certbot certificates
To renew manually -
sudo certbot renew --force-renewal
If you just have one site try -
sudo certbot certonly --force-renew --cert-name sitename.com
Or more than one site -
sudo certbot --force-renew -d sitename1.com -d sitename2.com
And check .htaccess redirects http to https
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Norman

sudo certbot certificates
To renew manually -
sudo certbot renew --force-renewal
If you just have one site try -
sudo certbot certonly --force-renew --cert-name sitename.com
Or more than one site -
sudo certbot --force-renew -d sitename1.com -d sitename2.com
And check .htaccess redirects http to https
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Norman
