Obtain Certificate ona reverse proxy server

Hi guys. I have one server acting as a reverse proxy server to forward multiple web apps lie wordpress, owncloud and ect. to the world wide bew(public).

I was wondering if it is possible to use certbot to obtain the certificate on my reverse proxy even if the things it is hosting is on different servers?

If you’re using Apache as the reverse proxy then the Apache plugin will work as normal. Otherwise you’ll have to use webroot by excluding /.well-known/acme-challenge/ from the proxy rules and serving it directly, or mounting the webroots on the other servers.

If none of that is possible then you’ll have to use one of the clients that supports the DNS challenge.

Do you know there is an easy guide to the acme challenge? The proxy is a nginx server

You’ll need something like this in your nginx config

location ^~ /.well-known/acme-challege {
    root /var/www/.well-known/acme-challege;
}

Then run certbot with --webroot -w /var/www/ and the releveant -d flags

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.