summaryrefslogtreecommitdiffstats
path: root/keygen
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2016-11-11 22:55:21 -0800
committerJay Sorg <jay.sorg@gmail.com>2016-11-11 22:55:21 -0800
commit4f33a9db1dae60040d7252a8f0111ab88967f864 (patch)
tree9e135b1d1be72f1de4f78db08c01f5372c24001b /keygen
parentda9439f24d57dae9c14d2310989e30562107481c (diff)
downloadxrdp-proprietary-4f33a9db1dae60040d7252a8f0111ab88967f864.tar.gz
xrdp-proprietary-4f33a9db1dae60040d7252a8f0111ab88967f864.zip
change xrdp.ini security_layer=negotiate and auto generate tls keys on make install
Diffstat (limited to 'keygen')
-rw-r--r--keygen/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/keygen/Makefile.am b/keygen/Makefile.am
index ffe6d956..8cdea746 100644
--- a/keygen/Makefile.am
+++ b/keygen/Makefile.am
@@ -18,7 +18,8 @@ xrdpsysconfdir = $(sysconfdir)/xrdp
install-data-hook:
umask 077 && \
- if [ ! -f $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini ]; then ./xrdp-keygen xrdp $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini; fi
+ if [ ! -f $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini ]; then ./xrdp-keygen xrdp $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini; fi && \
+ if [ ! -f $(DESTDIR)$(xrdpsysconfdir)/cert.pem ]; then openssl req -x509 -newkey rsa:2048 -nodes -keyout $(DESTDIR)$(xrdpsysconfdir)/key.pem -out $(DESTDIR)$(xrdpsysconfdir)/cert.pem -days 365 -subj /C=US/ST=CA/L=Sunnyvale/O=xrdp/CN=www.xrdp.org; fi
uninstall-hook:
rm -f $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini