Alexis <flexibe...@gmail.com> writes:
> Stuart Henderson <s...@spacehopper.org> writes: > >> In gmane.os.openbsd.misc, you wrote: >>> I'm trying to use macros in my acme-client.conf, but it seems I >>> cannot >>> get the syntax right. In addition to that, even when I try the >>> example >>> from the acme-client.conf(5): >>> >>> api_url="https://acme-v02.api.letsencrypt.org/directory" >>> authority letsencrypt { >>> api url $api_url >>> account key "/etc/acme/letsencrypt-privkey.pem" >>> } >>> >>> It fails with a syntax error: >>> >>> $ ./acme-client -vvv -f ../test.conf >>> api_url = "https://acme-v02.api.letsencrypt.org/directory" >>> ../test.conf:3: syntax error > > Are spaces around the '=' permitted? i thought they weren't. The > example in acme-client.conf(5) man page certainly doesn't have them. The parser.y used in acme-client (and other stuff in base) is quite flexible w.r.t. spaces/tabs 602 top: 603 p = buf; 604 while ((c = lgetc(0)) == ' ' || c == '\t') 605 ; /* nothing */ In sh (and probably other languages) spaces around the equal sign aren't permitted (well, the are valid but yields a different result). > Alexis.