From c82268523e28a998de4dce38b842b25c4ba4ffd2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 10 Aug 2010 12:19:19 +0000 Subject: main/apache2: moved from testing fixes #392 --- testing/apache2/apache2-ssl.post-install | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 testing/apache2/apache2-ssl.post-install (limited to 'testing/apache2/apache2-ssl.post-install') diff --git a/testing/apache2/apache2-ssl.post-install b/testing/apache2/apache2-ssl.post-install deleted file mode 100644 index d73b5fc622..0000000000 --- a/testing/apache2/apache2-ssl.post-install +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -ssldir=/etc/ssl/apache2 -sslkey=$ssldir/server.key -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 - -FQDN=`hostname -f` -if [ "x${FQDN}" = "x" ]; then - FQDN=localhost.localdomain -fi - -if [ ! -f ${sslcert} ] ; then -cat << EOF | openssl req -new -key ${sslkey} \ - -x509 -days 365 -set_serial $RANDOM \ - -out ${sslcert} 2>/dev/null --- -SomeState -SomeCity -SomeOrganization -SomeOrganizationalUnit -${FQDN} -root@${FQDN} -EOF -fi - - -- cgit v1.2.3