trellis-cloudflare-origin-ca
trellis-cloudflare-origin-ca copied to clipboard
Overwrite SSL certificates if settings are changed
Submit a feature request or bug report
- [x] I've read the code of conduct
- [x] This is a feature request
- [ ] This is a bug report
- [ ] This request isn't a duplicate of an existing issue
- [x] I've read the project readme and followed them (if applicable)
- [x] I've read the Trellis docs and followed them (if applicable)
- [x] This is not a Trellis support request that should be posted on the Roots Discourse forums or Trellis' issue tracker
- [x] This is not a Cloudflare support request that should be reported to Cloudflare support team
What is the current behavior?
When adding domains or changing the site_hosts the cloudflare_origin_ca doesn't get updated because {site_key}.pem already exists.
[FATAL] Certificate file "{site_key}.pem" already exists, use -overwrite to overwrite
This results in cloudflare not adding the origin ca to additional domains or updating the hostnames.
What is the expected or desired behavior?
I think this behavior should be documented and/or be resolved. A solution would be to allowing to overwrite the certificate file name or passing -overwrite using an argument.