equal
deleted
inserted
replaced
|
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 |