feat: sync vault certs for suricata
parent
6e1b45b1be
commit
42aefc7b55
|
@ -2,21 +2,21 @@
|
||||||
|
|
||||||
VAULT_TLS=/srv/certs/vault
|
VAULT_TLS=/srv/certs/vault
|
||||||
ACME_DIR=/srv/certs/acme
|
ACME_DIR=/srv/certs/acme
|
||||||
DOMAIN=monotremata.xyz
|
DOMAIN=vault.monotremata.xyz
|
||||||
|
|
||||||
CERT_PATH=$(ACME_DIR)/$(DOMAIN)
|
CERT_PATH=$(ACME_DIR)/$(DOMAIN)
|
||||||
CERT=$(CERT_PATH)/$(DOMAIN).cer
|
CERT=$(CERT_PATH)/cert.pem
|
||||||
KEY=$(CERT_PATH)/$(DOMAIN).key
|
KEY=$(CERT_PATH)/key.pem
|
||||||
|
|
||||||
VAULT_CERT=$(VAULT_TLS)/tls.crt
|
DEST_CERT=$(VAULT_TLS)/tls.crt
|
||||||
VAULT_KEY=$(VAULT_TLS)/tls.key
|
DEST_KEY=$(VAULT_TLS)/tls.key
|
||||||
|
|
||||||
all: $(VAULT_CERT) $(VAULT_KEY)
|
all: $(DEST_CERT) $(DEST_KEY)
|
||||||
|
|
||||||
$(VAULT_CERT): $(CERT)
|
$(DEST_CERT): $(CERT)
|
||||||
mkdir -p $(@D)
|
mkdir -p $(@D)
|
||||||
install -o vault -g vault -m 600 $^ $@
|
install -o vault -g vault -m 600 $^ $@
|
||||||
|
|
||||||
$(VAULT_KEY): $(KEY)
|
$(DEST_KEY): $(KEY)
|
||||||
mkdir -p $(@D)
|
mkdir -p $(@D)
|
||||||
install -o vault -g vault -m 600 $^ $@
|
install -o vault -g vault -m 600 $^ $@
|
||||||
|
|
Loading…
Reference in New Issue