deb/apache-letsencrypt.bash
changeset 28 47f47ba80e8d
child 29 74c62c0d1f64
equal deleted inserted replaced
27:9b0cc94cd960 28:47f47ba80e8d
       
     1 #!/bin/bash
       
     2 
       
     3 mkdir /srv/www/letsencrypt
       
     4 chown apache:apache /srv/www/letsencrypt
       
     5 
       
     6 # service apache2 stop
       
     7 # --standalone
       
     8 sudo -u apache \
       
     9  certbot certonly --webroot \
       
    10  --agree-tos --non-interactive \
       
    11  -m gavenkoa@gmail.com \
       
    12  -w /srv/www/letsencrypt \
       
    13  --cert-name defun.work \
       
    14  -d 2048.defun.work
       
    15 # service apache2 start
       
    16 
       
    17 # https://wiki.debian.org/LetsEncrypt
       
    18 # python3-certbot-apache - Apache plugin for Certbot
       
    19 
       
    20 # systemctl reload apache2
       
    21 # sudo certbot --apache --agree-tos --redirect -m youremail@email.com -d domainname.com -d www.domainname.com