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?
return 301 https://www.ducsu.com$request_uri;
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