====== Apache: renew self-signed certificate ======
- change directory\\ cd /etc/apache2/ssl/
- generate openssl key\\ openssl genrsa -out joel.feggm.de.key 2048
- change file permissions\\ chmod 600 joel.feggm.de.key
- create a certificate request file\\ openssl req -new -key joel.feggm.de.key -out joel.feggm.de.csr
- self-sign the certificate\\ openssl x509 -req -days 365 -in joel.feggm.de.csr -signkey joel.feggm.de.key -out joel.feggm.de.crt
- move old certificate to *.old\\ mv apache.pem apache.pem.old
- copy new key to old file\\ cp joel.feggm.de.key apache.pem
- attach new certificate to old file\\ cat joel.feggm.de.crt >> apache.pem
- change file permissions\\ chmod 600 apache.pem
- restart apache daemon\\ service apache2 restart