Note the top-level "default" object (which is the name of the certificate resolver), as well as changed capitalization on Domain, Main, Certificate etc.
In order to support this file, I basically copied dumpcerts.acme.v2.sh, adapted it to this structure, and added detection in certs_helper.sh.
Type of change
[x] New feature (non-breaking change which adds functionality)
Status
[x] Ready
[ ] In development
[ ] Hold
How has this been tested ?
I use this in production with on my own instance using Traefik v2 - so far it works well. However, I don't use wildcard certificates, so I haven't been able to test functionality with wildcard certificates.
Thank you for your contribution. I noticed the Travis CI build is failed on your branch and the previous PR as well. If there is no objection, I will merge it tomorrow. CC: @hardware
Description
This PR essentially adds the possibility to handle acme.json files generated by Traefik v2.
Traefik v2 adds the concept of multiple certificate resolvers (reference). As such, the structure of acme.json is slightly different.
Old acme.json from Traefik v1:
New acme.json from Traefik v2:
Note the top-level "default" object (which is the name of the certificate resolver), as well as changed capitalization on Domain, Main, Certificate etc.
In order to support this file, I basically copied
dumpcerts.acme.v2.sh
, adapted it to this structure, and added detection incerts_helper.sh
.Type of change
Status
How has this been tested ?
I use this in production with on my own instance using Traefik v2 - so far it works well. However, I don't use wildcard certificates, so I haven't been able to test functionality with wildcard certificates.