How to setup a custom Caddy PKI and ACME Server with an existing CA

A post was split to a new topic: Caddy’s root certificate overridden when intermediate renewed