diff --git a/README.md b/README.md index 89ebb203..87d784ed 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,9 @@ This will setup a publicly accessible Mailtrain instance. All endpoints (trusted and HTTPS (on port 443). The HTTP ports just issue HTTP redirect to their HTTPS counterparts. The script below will also acquire a valid certificate from [Let's Encrypt](https://letsencrypt.org/). +**Note,** that this will automatically accept the Let's Encrypt's Terms of Service. +Thus, by running this script below, you agree with the Let's Encrypt's Terms of Service (https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf). + 1. Login as root ``` sudo -i diff --git a/setup/functions b/setup/functions index 8d390c11..3b21c71c 100644 --- a/setup/functions +++ b/setup/functions @@ -262,7 +262,7 @@ EOT function createCertificates { # This assumes that HTTPD is not yet running - + local hostTrusted="$1" local hostSandbox="$2" local hostPublic="$3" @@ -275,7 +275,7 @@ function createCertificates { firewall-cmd --add-port=80/tcp fi - certbot certonly --email "${email}" --standalone -n -d "${hostPublic}" -d "${hostTrusted}" -d "${hostSandbox}" + certbot certonly --agree-tos --email "${email}" --standalone -n -d "${hostPublic}" -d "${hostTrusted}" -d "${hostSandbox}" # Install cron echo "0 3 * * * /usr/bin/certbot certonly --apache -n -d \"${hostPublic}\" -d \"${hostTrusted}\" -d \"${hostSandbox}\"" > crontab diff --git a/setup/install-centos7-https.sh b/setup/install-centos7-https.sh index 7ad73370..c5c55c87 100644 --- a/setup/install-centos7-https.sh +++ b/setup/install-centos7-https.sh @@ -27,6 +27,9 @@ a reverse HTTPS proxy using Apache HTTPD, sets up firewall rules, and obtains a You have to allocate three endpoints for Mailtrain - trusted (admin UI), sandbox (editors for templates), public (subscription forms and archive). These endpoints have to differ in hostname. It's fine to host them all from one IP address. The email parameters is needed by certbot. +Note, that this will automatically accept the Let's Encrypt's Terms of Service. +Thus, by running this script below, you agree with the Let's Encrypt's Terms of Service (https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf). + Example: install-centos7-https.sh mailtrain.example.com sbox.mailtrain.example.com lists.example.com admin@example.com EOF