From af206c0aceba7fdf12046aa75f9a4442f3015c02 Mon Sep 17 00:00:00 2001 From: James Mills Date: Fri, 15 Apr 2022 18:11:46 +1000 Subject: [PATCH] Fix certs Makefile target for local dev and fix alternate subject name --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0e23834..1151880 100644 --- a/Makefile +++ b/Makefile @@ -33,16 +33,18 @@ deps: ## Install any dependencies required @$(GOCMD) install github.com/jsha/minica@latest @$(GOCMD) install github.com/coredns/coredns@latest -certs: certs/minica-key.pem certs/minica.pem certs/_.home.arpa/key.pem certs/_.home.arpa/cert.pem - @/bin/sh -c 'cd certs && minica --domains salty.home.arpa' +certs/minica-key.pem: + @/bin/sh -c 'cd certs && minica --domains "home.arpa,*.home.arpa"' + +certs: certs/minica-key.pem certs/minica.pem certs/home.arpa/key.pem certs/home.arpa/cert.pem dev : DEBUG=1 dev : certs pwa ## Build debug version of salty-chat (CLI and TUI) and saltyd (Broker and PWA) @CGO_ENABLED=1 $(GOCMD) build ./cmd/salty-chat/... @CGO_ENABLED=1 $(GOCMD) build -tags "embed" ./cmd/saltyd/... @./saltyd -D -b :https --tls \ - --tls-key ./certs/_.home.arpa/key.pem \ - --tls-cert ./certs/_.home.arpa/cert.pem + --tls-key ./certs/home.arpa/key.pem \ + --tls-cert ./certs/home.arpa/cert.pem cli: ## Build the salty-chat command-line client and tui @$(GOCMD) build -tags "netgo static_build" -installsuffix netgo \