[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Add --acme-email option.
commit b86bbd748de10157e0022cc0ef7746c7adcaea97
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Fri Jan 20 15:42:42 2017 -0800
Add --acme-email option.
---
server/server.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/server/server.go b/server/server.go
index bedc70c..0ff736b 100644
--- a/server/server.go
+++ b/server/server.go
@@ -213,11 +213,13 @@ func startServer(ln net.Listener) (net.Listener, error) {
}
func main() {
+ var acmeEmail string
var acmeHostnamesCommas string
var disableTLS bool
var logFilename string
flag.Usage = usage
+ flag.StringVar(&acmeEmail, "acme-email", "", "optional contact email for Let's Encrypt notifications")
flag.StringVar(&acmeHostnamesCommas, "acme-hostnames", "", "comma-separated hostnames for TLS certificate")
flag.BoolVar(&disableTLS, "disable-tls", false, "don't use HTTPS")
flag.StringVar(&logFilename, "log", "", "log file to write to")
@@ -250,6 +252,7 @@ func main() {
certManager := autocert.Manager{
Prompt: autocert.AcceptTOS,
HostPolicy: autocert.HostWhitelist(acmeHostnames...),
+ Email: acmeEmail,
}
// The ACME responder only works when it is running on port 443. In case
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits