<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://howto.cactus.de/index.php?action=history&amp;feed=atom&amp;title=Configure_apache2.sh</id>
	<title>Configure apache2.sh - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://howto.cactus.de/index.php?action=history&amp;feed=atom&amp;title=Configure_apache2.sh"/>
	<link rel="alternate" type="text/html" href="http://howto.cactus.de/index.php?title=Configure_apache2.sh&amp;action=history"/>
	<updated>2026-05-30T19:28:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>http://howto.cactus.de/index.php?title=Configure_apache2.sh&amp;diff=142&amp;oldid=prev</id>
		<title>Tim: Die Seite wurde neu angelegt: „&lt;pre&gt; #!/bin/bash if [ ! -f /etc/apache2/ssl/server.key ]; then         mkdir -p /etc/apache2/ssl         KEY=/etc/apache2/ssl/server.key         DOMAIN=$(host…“</title>
		<link rel="alternate" type="text/html" href="http://howto.cactus.de/index.php?title=Configure_apache2.sh&amp;diff=142&amp;oldid=prev"/>
		<updated>2014-12-21T13:01:40Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;pre&amp;gt; #!/bin/bash if [ ! -f /etc/apache2/ssl/server.key ]; then         mkdir -p /etc/apache2/ssl         KEY=/etc/apache2/ssl/server.key         DOMAIN=$(host…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
if [ ! -f /etc/apache2/ssl/server.key ]; then&lt;br /&gt;
        mkdir -p /etc/apache2/ssl&lt;br /&gt;
        KEY=/etc/apache2/ssl/server.key&lt;br /&gt;
        DOMAIN=$(hostname)&lt;br /&gt;
        export PASSPHRASE=$(head -c 128 /dev/urandom  | uuencode - | grep -v &amp;quot;^begin&amp;quot; | grep -v &amp;quot;^end&amp;quot; | tr &amp;quot;\n&amp;quot; &amp;quot;d&amp;quot;)&lt;br /&gt;
        SUBJ=&amp;quot;&lt;br /&gt;
C=DE&lt;br /&gt;
O=Cactus eSecurity&lt;br /&gt;
localityName=Frankfurt&lt;br /&gt;
commonName=$DOMAIN&lt;br /&gt;
organizationalUnitName=&lt;br /&gt;
emailAddress=itsecorg@cactus.de&lt;br /&gt;
&amp;quot;&lt;br /&gt;
        openssl genrsa -des3 -out /etc/apache2/ssl/server.key -passout env:PASSPHRASE 2048&lt;br /&gt;
        openssl req -new -batch -subj &amp;quot;$(echo -n &amp;quot;$SUBJ&amp;quot; | tr &amp;quot;\n&amp;quot; &amp;quot;/&amp;quot;)&amp;quot; -key $KEY -out /tmp/$DOMAIN.csr -passin env:PASSPHRASE&lt;br /&gt;
        cp $KEY $KEY.orig&lt;br /&gt;
        openssl rsa -in $KEY.orig -out $KEY -passin env:PASSPHRASE&lt;br /&gt;
        openssl x509 -req -days 365 -in /tmp/$DOMAIN.csr -signkey $KEY -out /etc/apache2/ssl/server.crt&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#HOSTLINE=$(echo $(ip -f inet addr show eth0 | grep &amp;#039;inet&amp;#039; | awk &amp;#039;{ print $2 }&amp;#039; | cut -d/ -f1) $(hostname) $(hostname -s))&lt;br /&gt;
#echo $HOSTLINE &amp;gt;&amp;gt; /etc/hosts&lt;br /&gt;
&lt;br /&gt;
# /usr/sbin/apache2ctl -D FOREGROUND&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tim</name></author>
	</entry>
</feed>