Lets Encrypt

Aus Roebke Wiki
Zur Navigation springen Zur Suche springen

Let's encrypt installieren

zuerst Apache installieren

sudo add-apt-repository ppa:certbot/certbot
sudo apt install python-certbot-apache
cd /etc/apache2/sites-available
sudo mv 000-default.conf 000-default.conf.bk
sudo nano 000-default.conf
<VirtualHost *:80>     
      ServerName familie-roebke.de
      ServerAlias www.familie-roebke.de
      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/html
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


sudo nano /etc/apache2/apache2.conf

and insert:

ServerName localhost    
sudo apache2ctl configtest
sudo systemctl reload apache2
sudo certbot --apache -d familie-roebke.de -d www.familie-roebke.de


Quelle: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04