https://github.com/lldap/lldap logo
knightfall23 - Hello, how are folks handling TL...
# troubleshooting
k
Hello, how are folks handling TLS cert renewals when using LLDAPS? The issue I’m facing is I use Traefik to generate TLS certs from Cloudflare and use traefik cert dumper https://github.com/ldez/traefik-certs-dumper to get the certs, then manually copy them over to the LLDAP container directory. The problem is when the cert expires and I haven’t copied over the new certs; LLDAPS fails because of cert expiry errors which has cascading downstream problems with Authelia not working correctly. My setups been broken for months because I’ve been lazy to ssh into my sever and do all that nonsense. I could probably make a cron job/script but it feels to hackish and I’m pretty lazy to implement that. Just wondering how other people might be handling cert renewals for a similar pattern.
a
message has been deleted
n
Can't you mount the certificates directly into the LLDAP container? From where they're generated
f
problem is that traefik stores certificates inside a json file
and not as cert / pem files that could be directly consumed by lldap
so you'd still need to run the traefik cert dumper tool on a cronjob or something
ok nvm... traefik-certs-dumper just keeps watching the file 😅 so yeah just mounting the output folder of the dumper to lldap should do the trick (?)
j
i don't use traefik so this probably isn't very helpful to you but to answer your original question, i use acme.sh to update a wildcard cert (dns challenge), and do all tls termination on nginx, which i reload after every acme.sh renewal run. i (tcp stream) proxy ldaps through nginx too, so i get updated certificates "for free" at the same time as all web hosts are updated
i set this up so that i don't have to manage anything related to tls in the various services i run, they all bind to localhost and everything goes through nginx, where tls is terminated
it has the side effect advantage of not letting random docker apps have access to my tls certs. you'd have to be fairly paranoid to worry about one of them stealing your private key but they can't anyway in this configuration because they don't see any tls traffic