My domain is: vemo.it , vemo-ingrosso.it
I was running Caddy to try it out, and migrated my websites to HTTPS only + HSTS.
Today, I tried following Digital Ocean’s guide to setup nginx + certbot to auto-renew.
What happened is:
$ sudo apt-get install python-certbot-nginx
…
install failed because nginx couldn’t be configured
$ sudo systemctl stop caddy
$ sudo apt-get install python-certbot-nginx
…
(install successful)
$ sudo cp -R … /etc/nginx
(my nginx setup was copied)
$ sudo certbot --nginx -d vemo.it -d www.vemo.it -d vemo-ingrosso.it -d www.vemo-ingrosso.it
…
(fails, reporting it couldn’t connect)
… I try to determine what caused it to fail, but couldn’t …
… tried again …
certbot failed with “An unexpected error occurred:
There were too many requests of a given type :: Error creating new authz :: Too many failed authorizations recently.”
I tried to restart caddy, but now it won’t work.
I was assuming certbot would operate transparently, now I’m left with a non-working caddy setup + a non-working nginx setup + the message from certbot.
My server blocks:
default:
server {
listen 80;
listen [::]:80;
Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
return 301 https://$host$request_uri;
}
vemo.it:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vemo.it;
Redirect all requests to www server
return 301 https://www.$host$request_uri;
}
www.vemo.it:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
root /…;
server_name www.vemo.it;
}
vemo-ingrosso.it:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vemo-ingrosso.it;
Redirect all requests to www server
return 301 https://www.$host$request_uri;
}
www.vemo-ingrosso.it:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
root /…;
server_name www.vemo-ingrosso.it;
}
Could someone help me? THANK YOU!!!
EDIT: SOLVED. I just tried again, and it worked!
I must have hit some rate limit… Phewwww