diff options
Diffstat (limited to 'community/xrdp/xrdp.post-install')
-rw-r--r-- | community/xrdp/xrdp.post-install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/community/xrdp/xrdp.post-install b/community/xrdp/xrdp.post-install new file mode 100644 index 00000000000..0f3b702ab76 --- /dev/null +++ b/community/xrdp/xrdp.post-install @@ -0,0 +1,13 @@ +#!/bin/sh +if [ ! -s /etc/xrdp/rsakeys.ini ]; then + (umask 377; touch /etc/xrdp/rsakeys.ini; /usr/bin/xrdp-keygen xrdp /etc/xrdp/rsakeys.ini) +fi + +if [ ! -s /etc/xrdp/cert.pem ]; then + (umask 377; openssl req -x509 -newkey rsa:2048 -sha256 -nodes -days 3652 \ + -keyout /etc/xrdp/key.pem \ + -out /etc/xrdp/cert.pem \ + -config /etc/xrdp/openssl.conf) +fi + +exit 0 |