D
Dokploy7mo ago
max.d

Access to Traefik certs

Hey guys is there any way to get acces to certs managed by traefic? I run a psql server on the same machine and need certs for SSL. I want to manage psql myself so no Dokploy there.
2 Replies
Harvey Specter
Harvey Specter7mo ago
You can connect acme.json via volumes to your docker instance or if you need a key and privkey as files you can use this: https://github.com/kereis/traefik-certs-dumper
GitHub
GitHub - kereis/traefik-certs-dumper: Dumps Let's Encrypt certifica...
Dumps Let's Encrypt certificates of a specified domain which Traefik stores in acme.json. - kereis/traefik-certs-dumper
max.d
max.dOP7mo ago
yep this should work, thanks a lot!
jq -r '.letsencrypt.Certificates[] | select(.domain.main=="db.example.com") | .certificate' /etc/dokploy/traefik/dynamic/acme.json | base64 -d > /root/certs/tls_cert.pem
jq -r '.letsencrypt.Certificates[] | select(.domain.main=="db.example.com") | .key' /etc/dokploy/traefik/dynamic/acme.json | base64 -d > /root/certs/tls_key.pem
jq -r '.letsencrypt.Certificates[] | select(.domain.main=="db.example.com") | .certificate' /etc/dokploy/traefik/dynamic/acme.json | base64 -d > /root/certs/tls_cert.pem
jq -r '.letsencrypt.Certificates[] | select(.domain.main=="db.example.com") | .key' /etc/dokploy/traefik/dynamic/acme.json | base64 -d > /root/certs/tls_key.pem
this was the solution

Did you find this page helpful?