deb/apache-letsencrypt.bash
changeset 29 74c62c0d1f64
parent 28 47f47ba80e8d
child 31 461eed8e7463
equal deleted inserted replaced
28:47f47ba80e8d 29:74c62c0d1f64
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 mkdir /srv/www/letsencrypt
     3 mkdir /srv/www/letsencrypt
     4 chown apache:apache /srv/www/letsencrypt
       
     5 
     4 
     6 # service apache2 stop
     5 # service apache2 stop
     7 # --standalone
     6 # --standalone
     8 sudo -u apache \
     7 certbot certonly --webroot \
     9  certbot certonly --webroot \
       
    10  --agree-tos --non-interactive \
     8  --agree-tos --non-interactive \
    11  -m gavenkoa@gmail.com \
     9  -m gavenkoa@gmail.com \
    12  -w /srv/www/letsencrypt \
    10  -w /srv/www/letsencrypt \
    13  --cert-name defun.work \
    11  --cert-name defun.work \
    14  -d 2048.defun.work
    12  -d 2048.defun.work