summaryrefslogtreecommitdiff
path: root/distfoldd
diff options
context:
space:
mode:
Diffstat (limited to 'distfoldd')
-rw-r--r--distfoldd/distfoldd.pro8
-rwxr-xr-xdistfoldd/keygen.sh7
2 files changed, 13 insertions, 2 deletions
diff --git a/distfoldd/distfoldd.pro b/distfoldd/distfoldd.pro
index 3eb804e..3076068 100644
--- a/distfoldd/distfoldd.pro
+++ b/distfoldd/distfoldd.pro
@@ -30,6 +30,10 @@ HEADERS += \
compressor.h
contains(MEEGO_EDITION,harmattan) {
- target.path = /opt/distfold/bin
- INSTALLS += target
+ target.path = /opt/distfold/bin
+
+ scripts.files = keygen.sh
+ scripts.path = /opt/distfold/bin
+
+ INSTALLS += target scripts
}
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