From a6abec82101248860f7af3fc046903f9b6a53588 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 25 Jan 2016 08:47:28 -0700 Subject: [PATCH] letsencrypt: Update to match upstream refactor Challenge names now have their own type and constants --- caddy/letsencrypt/letsencrypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy/letsencrypt/letsencrypt.go b/caddy/letsencrypt/letsencrypt.go index a2965a104..dbde60c71 100644 --- a/caddy/letsencrypt/letsencrypt.go +++ b/caddy/letsencrypt/letsencrypt.go @@ -346,7 +346,7 @@ func newClientPort(leEmail, port string) (*acme.Client, error) { client.SetHTTPAddress(":" + port) client.SetTLSAddress(":" + port) } - client.ExcludeChallenges([]string{"tls-sni-01", "dns-01"}) // We can only guarantee http-01 at this time, but tls-01 should work if port is not custom! + client.ExcludeChallenges([]acme.Challenge{acme.TLSSNI01, acme.DNS01}) // We can only guarantee http-01 at this time, but tls-01 should work if port is not custom! // If not registered, the user must register an account with the CA // and agree to terms