Commit graph

10 commits

Author SHA1 Message Date
Glen Huang
8edcd33fb7 acme: simplify flock usage
Signed-off-by: Glen Huang <i@glenhuang.com>
2022-11-11 19:19:02 +08:00
Glen Huang
230c2d5fc4 acme: update changed packages' versions
Signed-off-by: Glen Huang <i@glenhuang.com>
2022-10-24 10:48:34 +08:00
Glen Huang
4e369cf780 acme: add dns_wait option
acme.sh by default use public DNS resolvers to check if TXT record was
correctly added when using DNS-01. This can be undesirable in a private
environment where the DNS server is not publicly accessible.

This option allows bypassing such check and simply waiting for a
specific length of time for the TXT record to take effect.

Signed-off-by: Glen Huang <i@glenhuang.com>
2022-10-24 10:48:34 +08:00
Glen Huang
9d2d8787ca acme: fix staging option
Legacy use_staging option was not respected, and the example config
still use the legacy name.

Signed-off-by: Glen Huang <i@glenhuang.com>
2022-10-24 10:48:34 +08:00
Glen Huang
7f04710579 amce: use procd to restart services
Directly calling `/etc/init.d/<service> reload` in a hotplug script can
inadvertently start a stopped service.

Signed-off-by: Glen Huang <i@glenhuang.com>
2022-10-24 10:07:06 +08:00
Glen Huang
035cc09e7f acme: prevent concurrent running of acme get
Issuing certificates concurrently should not be supported.

Signed-off-by: Glen Huang <i@glenhuang.com>
2022-10-24 10:06:49 +08:00
Glen Huang
cbc06f45b9 acme: make package create dir /etc/ssl/acme
Since the dir is a standardized one, it should not be created
dynamically

Signed-off-by: Glen Huang <i@glenhuang.com>
2022-10-22 21:42:10 +08:00
Glen Huang
465f56adc2 acme: not creating state_dir in Makefile
Since state_dir can be customized, it should be create dynamically,
which it already does.

Signed-off-by: Glen Huang <i@glenhuang.com>
2022-10-22 21:38:44 +08:00
Glen Huang
671594bec2 acme: remove help info of unused command
Signed-off-by: Glen Huang <i@glenhuang.com>
2022-10-06 18:38:47 +02:00
Glen Huang
e84f651453 acme: use the hotplug system
Signed-off-by: Glen Huang <heyhgl@gmail.com>
2022-08-16 00:32:04 +02:00