Skip to content

Commit

Permalink
acme/autocert: include email in example
Browse files Browse the repository at this point in the history
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: 902b5fe
GitHub-Pull-Request: golang#186
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/323313
Reviewed-by: Roland Shoemaker <[email protected]>
Run-TryBot: Roland Shoemaker <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Katie Hockman <[email protected]>
Trust: Katie Hockman <[email protected]>
  • Loading branch information
jsha authored and owenthereal committed Mar 5, 2022
1 parent 4fb17ec commit f3933d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acme/autocert/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func ExampleManager() {
m := &autocert.Manager{
Cache: autocert.DirCache("secret-dir"),
Prompt: autocert.AcceptTOS,
Email: "[email protected]",
HostPolicy: autocert.HostWhitelist("example.org", "www.example.org"),
}
s := &http.Server{
Expand Down

0 comments on commit f3933d2

Please sign in to comment.