deb/apache-letsencrypt.bash
changeset 34 68975e7d5237
parent 33 7b602d7f98cd
child 35 b524ac24e926
equal deleted inserted replaced
33:7b602d7f98cd 34:68975e7d5237
    28 # https://wiki.debian.org/LetsEncrypt
    28 # https://wiki.debian.org/LetsEncrypt
    29 # python3-certbot-apache - Apache plugin for Certbot
    29 # python3-certbot-apache - Apache plugin for Certbot
    30 
    30 
    31 # systemctl reload apache2
    31 # systemctl reload apache2
    32 # sudo certbot --apache --agree-tos --redirect -m youremail@email.com -d domainname.com -d www.domainname.com
    32 # sudo certbot --apache --agree-tos --redirect -m youremail@email.com -d domainname.com -d www.domainname.com
       
    33 
       
    34 cat >/srv/www/letsencrypt/apache-ssl-options.conf <<EOF
       
    35 SSLEngine on
       
    36 SSLProtocol             all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
       
    37 SSLOptions +StrictRequire
       
    38 
       
    39 # Add vhost name to log entries:
       
    40 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined
       
    41 LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
       
    42 EOF
       
    43