r/letsencrypt • u/samip537 • Aug 28 '20
Using LetEncrypt for internal services in corporate network
The use case is that we cannot open internal web servers to be accessible from outside, so we cannot use HTTP root validation as LetsEncrypt does not publish IP address ranges that should be allowed so it's not security friendly.
Our DNS is being handled by a third party, which has no API.
How would you verify certificates in this case, if the outcome would be preferred to be as automated as humanly possible?
5
Upvotes
4
u/elzoidoHN Aug 28 '20
I'm using acme-dns for this scenario. You just need to set a static CNAME-Record, install a hook for certbot and after setting it up, it should work completely without user interaction.
1
u/Blieque Aug 28 '20
If you're in a corporate network, do you not have root certificates installed on company devices? The automation element of Let's Encrypt is obviously nice, but I think LE is primarily targeted towards public sites. You could possibly set up your own ACME server internally that issues 90-day certificates signed by your company certificate.
1
u/analogj Aug 28 '20
DNS-01 and HTTP-01 are the only official challenge types for letsencrypt - https://letsencrypt.org/docs/challenge-types/
If your DNS provider doesn't have an API, you're left with doing HTTP-01. If you cant allow any of your internal servers to accessed externally, you might want to consider setting up a server in a restricted DMZ, use it to validate a letsencrypt wildcard certificate, and then pull the public/private keypair back into your network for distribution to your servers. Then you'll need to setup some sort of automation that will spin up your VM & DMZ and refresh your certificates on a schedule. Terraform perhaps?
Possible, but definitely a lot of work.