Hello, I’m trying to renew my certs using this command:
sudo certbot certonly --dry-run --agree-tos --renew-by-default --standalone --preferred-challenges http-01 --http-01-port 54321 -d my.com -d www.my.com
But I get the following error:
Failed authorization procedure. my.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Could not connect to my.com, www.my.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Could not connect to www.my.com
As you can see I’m using --http-01-port 54321 and I’ve configured haproxy like this:
frontend http
bind 0.0.0.0:80
reqadd X-Forwarded-Proto:\ http
acl letsencrypt-request path_beg /.well-known/acme-challenge/
use_backend letsencrypt if letsencrypt-request
redirect scheme https if !{ ssl_fc } !{ path_beg /.well-known/acme-challenge }
default_backend letsencrypt
frontend https
bind 0.0.0.0:443 ssl ...
backend letsencrypt
server letsencrypt 127.0.0.1:54321
I hope someone can help me figure out whats going on.
Thanks