dags/suricata/acme_refresh/Makefile

23 lines
403 B
Makefile
Raw Normal View History

2023-07-10 15:26:11 +02:00
.PHONY: all
2023-07-12 12:35:46 +02:00
VAULT_TLS=/srv/certs/vault
2023-07-10 15:26:11 +02:00
ACME_DIR=/srv/certs/acme
DOMAIN=monotremata.xyz
CERT_PATH=$(ACME_DIR)/$(DOMAIN)
CERT=$(CERT_PATH)/$(DOMAIN).cer
KEY=$(CERT_PATH)/$(DOMAIN).key
VAULT_CERT=$(VAULT_TLS)/tls.crt
VAULT_KEY=$(VAULT_TLS)/tls.key
all: $(VAULT_CERT) $(VAULT_KEY)
$(VAULT_CERT): $(CERT)
mkdir -p $(@D)
2023-07-10 15:30:07 +02:00
install -m 600 $^ $@
2023-07-10 15:26:11 +02:00
$(VAULT_KEY): $(KEY)
mkdir -p $(@D)
2023-07-10 15:30:07 +02:00
install -m 600 $^ $@