cd /etc/apache2/ssl/
openssl genrsa -out joel.feggm.de.key 2048
chmod 600 joel.feggm.de.key
openssl req -new -key joel.feggm.de.key -out joel.feggm.de.csr
openssl x509 -req -days 365 -in joel.feggm.de.csr -signkey joel.feggm.de.key -out joel.feggm.de.crt
mv apache.pem apache.pem.old
cp joel.feggm.de.key apache.pem
cat joel.feggm.de.crt >> apache.pem
chmod 600 apache.pem
service apache2 restart