Closed t-abraham closed 3 weeks ago
Hi @t-abraham,
unfortunately, I cannot tell right away if traefik-certs-dumper is compatible with V3 in case there have been any data structure changes.
It definitely works with V2 however.
If it's helpful in debugging/troubleshooting, I'm using v3 of Traefik successfully, but a pretty basic setup. I've included a redacted acme.json
on the off chance it helps anyone narrow down and specific issues or edge cases.
{
"letsencrypt-dns": {
"Account": {
"Email": "MYEMAIL@DOMAIN.COM",
"Registration": {
"body": {
"status": "valid",
"contact": [
"mailto:MYEMAIL@DOMAIN.COM"
]
},
"uri": "https://acme-v02.api.letsencrypt.org/acme/acct/xxxxxxxxx"
},
"PrivateKey": "xxxxxxxxxx",
"KeyType": "4096"
},
"Certificates": [
{
"domain": {
"main": "DOMAIN.COM",
"sans": [
"*.DOMAIN.COM"
]
},
"certificate": "xxxxxxxxxx",
"key": "xxxxxxxxxx",
"Store": "default"
}
]
},
"zerossl-dns": {
"Account": null,
"Certificates": null
}
}
Unfortunately, it's hard to tell what's wrong because the error says
Error: v2: dump failed: failed to unmarshal file "/traefik/lets_encrypt_ssl.json": invalid character 'a' looking for beginning of value
meaning that something is wrong with your JSON file.
@t-abraham Is it read correctly by Traefik? Can you provide an example?
@arcoast Did you run into this issue as well?
@kereis I did not, I've got it set up and working in "production" with V3 of Traefik and have had since I last posted.
Just deleted my certs and run traefik-certs-dumper and the certs have been dumped perfectly.
2024-10-30T22:02:26.380866609Z [2024-10-30T22:02:26+0000]: Got value of DOMAIN: SERVER.COM. Splitting values.
2024-10-30T22:02:26.381460778Z [2024-10-30T22:02:26+0000]: Values split! Got 'SERVER.COM'
2024-10-30T22:02:26.382059863Z [2024-10-30T22:02:26+0000]: ACME file path: /traefik/acme.json
2024-10-30T22:02:26.383133973Z [2024-10-30T22:02:26+0000]: Clearing dumping directory
2024-10-30T22:02:26.384083730Z [2024-10-30T22:02:26+0000]: Dumping certificates
2024-10-30T22:02:26.430181699Z [2024-10-30T22:02:26+0000]: Certificate or key for 'SERVER.COM' differ, updating
2024-10-30T22:02:26.432994295Z [2024-10-30T22:02:26+0000]: Combining key and cert to single PEM with name SERVER.COM.pem
2024-10-30T22:02:26.434252057Z [2024-10-30T22:02:26+0000]: Converting key to RSA key file
2024-10-30T22:02:26.445009109Z writing RSA key
2024-10-30T22:02:26.447363697Z [2024-10-30T22:02:26+0000]: Changing ownership of certificates and keys
Currently running Traefik v3.2.0
and like I said in my last post, I'm using this successfully. (Although I admit re-reading my earlier comment I could have made it clearer it's working for me, I just posted to see if it was helpful to try and narrow down @t-abraham's issue.
I will close this issue for now I guess. Please reopen or create a new issue and add steps to reproduce!
/close
Hi i am having an issue for the container. It cannot parse. Can anyone help me out
YAML
Error