Reverse Proxy + ACME

Hi all, I would like to know if there is a possibility to configure a reverse proxy on VyOS 1.4 using a certificate for HTTPS, in a way similar to what I already do today via a Caddy container.
I’ve tried playing around a bit with the set pki certificate <name> acme, but haven’t been able to get anywhere as I always get an error.

For example, this

pki {
    certificate <name> {
        acme {
            domain-name "<domain>"
            email "<email>"
            url "https://acme-staging-v02.api.letsencrypt.org/directory"
        }
    }
}

returns me the following error:

ACME certbot request failed for "<name>"! failed to run
command: certbot certonly --non-interactive --config-dir
/config/auth/letsencrypt --cert-name <name> --standalone
--agree-tos --no-eff-email --expand --server https://acme-
staging-v02.api.letsencrypt.org/directory --email <email>
--key-type rsa --rsa-key-size 2048 --domains <domain>
returned: Requesting a certificate for <domain> exit
code: 1

Thank you very much,
Regards

if I understand properly , this is request where it’s present the ability use own certificate with reverse-proxy :

https://vyos.dev/T5997

Do you have proper DNS configured where your domain-name points to the VyOS IP address and is accessible via the firewall so certificate validation can take place?

@fernando yes, probably the use case is the same.

@c-po yes, it is.