dags/suricata/acme_refresh/Makefile

23 lines
401 B
Makefile
Raw Normal View History

2023-07-10 15:26:11 +02:00
.PHONY: all
VAULT_TLS=/opt/vault/tls
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 $^ $@