summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-30 17:28:33 -0400
committerJune McEnroe <june@causal.agency>2019-10-30 17:28:33 -0400
commit39bf65ea0ce965fb542451000857594d0a051ead (patch)
treeeb4fd28dd10e457a7cf845536a1f0f4463fd41b2
parentWarn when consumers drop messages (diff)
downloadpounce-39bf65ea0ce965fb542451000857594d0a051ead.tar.gz
pounce-39bf65ea0ce965fb542451000857594d0a051ead.zip
Add make target for localhost.crt
Adapted from <https://letsencrypt.org/docs/certificates-for-localhost/>.
-rw-r--r--.gitignore3
-rw-r--r--Makefile6
2 files changed, 8 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index c8c6546..ab1ddcf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
 *.conf
 *.o
-*.pem
 config.mk
+localhost.crt
+localhost.key
 pounce
 tags
diff --git a/Makefile b/Makefile
index 6af3477..c0b8323 100644
--- a/Makefile
+++ b/Makefile
@@ -39,3 +39,9 @@ install: pounce pounce.1 rc.pounce
 
 uninstall:
 	rm -f ${PREFIX}/bin/pounce ${MANDIR}/man1/pounce.1 ${ETCDIR}/rc.d/pounce
+
+localhost.crt:
+	printf "[dn]\nCN=localhost\n[req]\ndistinguished_name=dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" \
+		| openssl req -x509 -out localhost.crt -keyout localhost.key \
+		-newkey rsa:2048 -nodes -sha256 \
+		-subj '/CN=localhost' -extensions EXT -config /dev/fd/0
logheader'>2018-08-26Add NetBSD to install.shJune McEnroe 2018-08-24Show hostname in title over SSHJune McEnroe 2018-08-23Alias bc='bc -l'June McEnroe 2018-08-20Update usage of scheme in READMEJune McEnroe 2018-08-20Use scheme.h in fbatt and fbclockJune McEnroe 2018-08-20Generate scheme.hJune McEnroe 2018-08-20Add dependencies on gfx.hJune McEnroe 2018-08-18Add Blondie — Heart of GlassJune McEnroe Why didn't I know about this song? I love it. 2018-08-18Set FCEDIT=$EDITORJune McEnroe 2018-08-18Only post commits with bodies to MastodonJune McEnroe 2018-08-18Run tf/cfg link script with /bin/shJune McEnroe 2018-08-18Run {,s,t}up with /bin/shJune McEnroe 2018-08-18Use whence instead of typeJune McEnroe type is an alias for whence -v and is more for human consumption. 2018-08-18Cut off path components until right prompt fitsJune McEnroe Keeps paths valid (from somehwere) rather than abrupt truncation. 2018-08-17Add "private" alias to source encrypted fileJune McEnroe Why is there no easy way to *edit* an encrypted file? 2018-08-17Add vim mapping to add a #includeJune McEnroe