commit 14282cf5acbdfe870b21491d6bfbb64c7f6ad5f7 from: the xhr date: Fri Aug 13 14:24:33 2021 UTC Add command to create new TLS cert commit - a1f02a59cd251da395c1bdf2993567c0d05ed8fe commit + 14282cf5acbdfe870b21491d6bfbb64c7f6ad5f7 blob - b25865460c700ab825850e219c3434022fff043f blob + 2ae4d8f8111107cb139b4d29ce1d5eab2217955d --- Makefile +++ Makefile @@ -35,6 +35,9 @@ install: all 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` + $(BIN): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDADD)