Let’s Encrypt – nowy certyfikat

# certbot certonly --webroot -w /var/www/html/MYAPP/webroot -d MYDOMAIN.pl

# certbot renew

# certbot delete -d domena.pl

  • Katalog: /var/www/html/MYAPP/webroot
  • Domena: MYDOMAIN.pl
#  nano  /etc/apache2/sites-available/000-default.conf

<VirtualHost 75.201.144.106:80>
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html/MYAPP/webroot
  ServerName MYDOMAIN.pl
</VirtualHost>
# certbot certonly --webroot -w /var/www/html/MYAPP/webroot -d MYDOMAIN.pl
# nano /etc/apache2/sites-available/default-ssl.conf

<VirtualHost 80.211.244.102:443>
   ServerAdmin webmaster@localhos
   DocumentRoot /var/www/html/MYAPP/webroot
   ServerName MYDOMAIN.pl:443
   SSLEngine on
   SSLCertificateFile     /etc/letsencrypt/live/MYDOMAIN.pl/fullchain.pem
   SSLCertificateKeyFile  /etc/letsencrypt/live/MYDOMAIN.pl/privkey.pem
</VirtualHost>

Restart serwera

# apache2ctl graceful

Dodaj komentarz