From 3825cdccff23415710ba8c2742c729c942fac809 Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Fri, 2 Oct 2020 15:51:43 +0200 Subject: [PATCH] Add the "tls.email" directive To receive expiration warnings from Let's Encrypt. --- directives.go | 6 ++++++ tlstunnel.1.scd | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/directives.go b/directives.go index 38d6180..43efd20 100644 --- a/directives.go +++ b/directives.go @@ -103,6 +103,12 @@ func parseTLS(srv *Server, d *Directive) error { return err } srv.ACMEManager.CA = caURL + case "email": + var email string + if err := child.ParseParams(&email); err != nil { + return err + } + srv.ACMEManager.Email = email default: return fmt.Errorf("unknown %q directive", child.Name) } diff --git a/tlstunnel.1.scd b/tlstunnel.1.scd index 161c7ad..ae781ec 100644 --- a/tlstunnel.1.scd +++ b/tlstunnel.1.scd @@ -64,6 +64,10 @@ The following directives are supported: *acme_ca* ACME Certificate Authority endpoint. + *email*
+ The email address to use when creating or selecting an existing ACME + server account + # FILES _/etc/tlstunnel/config_