summaryrefslogtreecommitdiff
path: root/distfoldd/keygen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'distfoldd/keygen.sh')
-rwxr-xr-xdistfoldd/keygen.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/distfoldd/keygen.sh b/distfoldd/keygen.sh
new file mode 100755
index 0000000..d271b57
--- /dev/null
+++ b/distfoldd/keygen.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Simple script to generate required SSL cert & private key.
+# Place server.* files in ~/.config/distfold/
+
+openssl req -x509 -batch -newkey rsa:2048 -keyout server.key -nodes -days 365 -out server.crt
+chmod 0400 server.key server.crt