this post was submitted on 04 Apr 2025
858 points (99.2% liked)

Programmer Humor

22226 readers
1641 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 day ago (2 children)

Does Trafik also allow DNS based challenges with additional certbot plugins, or does it only work by serving a challenge in /.well-known/?

I’ve set up my internal homelab with LE certificates, but if I could get rid of certbot and do this automagically, it’d be nice…

[–] Dhs92 7 points 1 day ago

I have it setup to use DNS challenges through Cloudflare, but it supports different providers as well. I just add the labels to my docker container and voila, I have TLS

[–] [email protected] 4 points 1 day ago (1 children)

Not all dns providers support acme, I've discovered to my recent annoyance. The one I use at work, for instance.

[–] [email protected] 3 points 23 hours ago (1 children)

I already use certbot with my DNS provider, so it should generally be supported. And indeed, O found the docs, where all supported providers are listed.

https://doc.traefik.io/traefik/https/acme/#providers

[–] [email protected] 2 points 19 hours ago (1 children)

Yeah. For wildcard DNS from letsencrypt, you can't do HTTP validation, only DNS, which involves creating a TXT record.

Your DNS provider needs to run an ACME server, which runs an API that'll add the required TXT records on request.

As I understand it.

[–] [email protected] 1 points 4 hours ago

The DNS provider needs to provide an API, but not an ACME server.

Your server contacts Lets Encrypt and wants a certificate - say for homeserver.example.com. It tells Let's Encrypt to use DNS based authentication. Let's encrypt answers with a challenge code, that you now publish as a txt record with a defined name via your providers API for this (sub)domain. Let's encrypt then checks the TXT record and if it finds the challenge there, it sends you the certificate.