I am having issue renewal my certificates. 3 months ago, I was able to create certificates with a domain with several subdomains. My certificates are due to expire in a week. I noticed my cron job is failing.
When I try to manually renew, I am getting this error:
Attempting to renew cert from /etc/letsencrypt/renewal/ducsu.com.conf produced an unexpected error: Failed authorization procedure. www.ducsu.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Could not connect to . Skipping.
It seems letsencrypt cannot connect to 'www.ducsu.com'. However, 'ducsu.com' connects fine along with my other subdomains. In my nginx conf file, I have ducsu.com redirect to www.ducsu.com. The cause is possibly from my redirect?
server {
listen 80;
server_name ducsu.com;
return 301 https://www.ducsu.com$request_uri;
}
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
index index.html index.php;
## Begin - Server Info
root /home/pi/www/ducsu;
server_name www.ducsu.com;
## End - Server Info
I don’t know if you have another server block (port 80) only for www.ducsu.com or another kind of redirection (keep in mind that your server redirects with a 302 code so something is redirecting it) so you should double check your conf… and maybe you could include www.ducsu.com in your current server block for ducsu.com