mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
13 lines
369 B
Bash
13 lines
369 B
Bash
#!/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
|