Commit Diff


commit - 14282cf5acbdfe870b21491d6bfbb64c7f6ad5f7
commit + bf7596f477a81a46d19c23d8427c65e850003042
blob - 2ae4d8f8111107cb139b4d29ce1d5eab2217955d
blob + 338a860e245c0825b3f31415366d9daf45e0fec7
--- Makefile
+++ Makefile
@@ -36,7 +36,7 @@ user:
 	@useradd -d $(GEMINIDIR) -s /sbin/nologin -u $(UID) _twind
 
 setuptls:
-	@openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -nodes -keyout $(CONFDIR)/twind.key.pem -new -subj /CN=`hostname -f` -out $(CONFDIR)/twind.cert.pem -addext subjectAltName=DNS:`hostname -f`
+	@openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -nodes -keyout $(CONFDIR)/twind.key.pem -new -subj /CN=$(HN) -out $(CONFDIR)/twind.cert.pem -addext subjectAltName=DNS:$(HN)
 
 $(BIN): $(OBJS)
 	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDADD)