From dad33157f4bf4f89d0a15a28ea3ccee0bf2f48a5 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Fri, 28 May 2021 23:52:19 +0000 Subject: 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. Change-Id: I0aa1ecea7cfbe55ae155804194fb57a8e695c658 GitHub-Last-Rev: 902b5fe2682a6be5af91e886272fd680fd67a94e GitHub-Pull-Request: golang/crypto#186 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/323313 Reviewed-by: Roland Shoemaker Run-TryBot: Roland Shoemaker TryBot-Result: Gopher Robot Reviewed-by: Katie Hockman Trust: Katie Hockman --- 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 d4225e5..6c7458b 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{ -- cgit v1.3