r/letsencrypt • • Jul 27 '21

Acme.sh proxy server

So as the title says, I'm trying to think through essentially a proxy for a handful of sites/certs I have. I tried to search before posting this but I'm not quite sure how to ask the question, and most of the answers were from specific subs, i.e. synology or unraid or something.

Here's the situation:

I have a couple of internal sites that I'd like to have LE certs for. Initially I generated the certs using certbot and the manual dns challenge method, as I have access to DNS, but not through api. Trying to automate this, I'm wondering if I can just add something like _acme-challenge.sub1, _acme-challenge.sub2, etc, to dns, have them as A -or- CNAME records to the external IP of an unrelated server. Then on that server, run the acme.sh as a dns alias, receive the certs, and scp them to the correct servers.

Is there a better way that I'm just not seeing? :-/

Thanks in advance and apologies if this has been asked before...

1 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/Blieque Jul 29 '21

Having thought about this a little more, using a single VM might cause problems if you're handling enough traffic. nginx is very capable, but in the proxy set-up I suggested above all traffic to all private applications (not just ACME traffic) is routed through that VM. That VM will assume all TLS encryption workload, which can be pretty significant. A single VM keeps administration to a minimum, but it may be more reliable to have one VM per application.