1. The problem I’m having:
I want to limit the names of certs that can be created by the CA. However I can no figure out how to syntax work for the allow part.
2. Error messages and/or full log output:
Error: adapting config using caddyfile: parsing caddyfile tokens for 'acme_server': wrong argument count or unexpected line ending after '30d', at Caddyfile:27
3. Caddy version:
v2.10.0 h1:fonubSaQKF1YANl8TXqGcn4IbIRUDdfAkpcsfI/vX5U=
4. How I installed and ran Caddy:
a. System environment:
Alpine Linux 3.21
b. Command:
caddy reload
c. Service/unit/compose file:
d. My complete Caddy config:
{
debug
pki {
ca home {
name "My Home CA"
intermediate_lifetime 60d
}
}
}
c1 {
log {
output file log
format json
}
tls {
issuer internal {
ca home
}
}
acme_server {
ca home
allow {
domains exampleA.com exampleB.com
}
lifetime 30d
challenges http-01
}
}