Fix certs Makefile target for local dev and fix alternate subject name

pull/165/head
James Mills 6 months ago
parent 994895681d
commit af206c0ace
Signed by: prologic
GPG Key ID: AC4C014F1440EBD6
  1. 10
      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 \

Loading…
Cancel
Save