From 902b5fe2682a6be5af91e886272fd680fd67a94e Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Fri, 28 May 2021 16:49:20 -0700 Subject: [PATCH] acme/autocert: include email in example At Let's Encrypt, we've found that most autocert users do not provide an email address, which makes it hard to get in touch when things go wrong with their client. Demonstrating how to provide an email will probably encourage more people to provide one. --- acme/autocert/example_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/acme/autocert/example_test.go b/acme/autocert/example_test.go index d4225e5c76..6c7458b0d5 100644 --- a/acme/autocert/example_test.go +++ b/acme/autocert/example_test.go @@ -24,6 +24,7 @@ func ExampleManager() { m := &autocert.Manager{ Cache: autocert.DirCache("secret-dir"), Prompt: autocert.AcceptTOS, + Email: "example@example.org", HostPolicy: autocert.HostWhitelist("example.org", "www.example.org"), } s := &http.Server{