From c3a14bb70c9571c411a26d900b1d3883a65fcaa6 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Fri, 12 Jan 2018 15:37:38 -0800 Subject: Remove email from script --- README.md | 4 ++++ nginx-letsencrypt | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8891655..2ebb898 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,10 @@ Given the following server block configuration in Running `nginx-letsencrypt` will issue certificates for "foo.example.org" and "bar.example.com". +## Notes +nginx-letsencrypt is a thin wrapper around certbot. It will read +/etc/letsencrypt/cli.ini for settings such as email. + ## Copying This project is released under the terms of the GPL license. See LICENSE for details. diff --git a/nginx-letsencrypt b/nginx-letsencrypt index cb929c9..4bbb88d 100755 --- a/nginx-letsencrypt +++ b/nginx-letsencrypt @@ -12,8 +12,6 @@ # https://github.com/certbot/certbot/issues/3396 set -o errexit -email="jakob@odersky.com" - extra_flags=() if [ "$1" = --test ]; then extra_flags+=("--test-cert") @@ -51,7 +49,6 @@ mkdir --parents /var/www/letsencrypt certbot certonly "${extra_flags[@]}" \ --noninteractive \ --agree-tos \ - --email "$email" \ --cert-name nginx \ --webroot --webroot-path /var/www/letsencrypt \ --pre-hook "sh -c '(openssl x509 -in /etc/letsencrypt/live/nginx/fullchain.pem -noout -text) | grep --quiet letsencrypt || rm -r /etc/letsencrypt/live/nginx'" \ -- cgit v1.2.3