aboutsummaryrefslogtreecommitdiffstats
path: root/main/apache2/apache2-ssl.post-install
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2016-10-30 18:44:39 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2016-10-30 18:44:39 +0200
commit45fa9ece3e09b4991138cd4171a3d2a16f9bdcc2 (patch)
treed69b89ad2b868a852559f95f9dfd9ee2c9481167 /main/apache2/apache2-ssl.post-install
parentf4c7e289dbdbaa00da98009d4018cef25906b573 (diff)
downloadaports-45fa9ece3e09b4991138cd4171a3d2a16f9bdcc2.tar.bz2
aports-45fa9ece3e09b4991138cd4171a3d2a16f9bdcc2.tar.xz
main/apache2: adjust genrsa options
increase key length to 2048 bits remove 'rand' option (not supported by libressl)
Diffstat (limited to 'main/apache2/apache2-ssl.post-install')
-rw-r--r--main/apache2/apache2-ssl.post-install4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/apache2/apache2-ssl.post-install b/main/apache2/apache2-ssl.post-install
index d73b5fc622..1e8478a8d4 100644
--- a/main/apache2/apache2-ssl.post-install
+++ b/main/apache2/apache2-ssl.post-install
@@ -6,9 +6,7 @@ sslcert=$ssldir/server.pem
umask 077
-if [ ! -f ${sslkey} ] ; then
- openssl genrsa -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime 1024 > ${sslkey} 2> /dev/null
-fi
+[ -f $sslkey ] || openssl genrsa 2048 > $sslkey 2>/dev/null
FQDN=`hostname -f`
if [ "x${FQDN}" = "x" ]; then