Skip to content
Permalink
Browse files
acme/autocert: support http-01 challenge type
The Manager now loops through known challenge types,
trying to fulfill one at a time until it succeeds or runs out
of supported challenges.

The provisioning of "http-01" challenges can be done
using the new Manager.HTTPHandler method.
It requires listening on unencrypted port 80.

Fixes golang/go#21890

Change-Id: I55de9501f0069a9f460fedd8b5b0a09b94f9ef05
Reviewed-on: https://go-review.googlesource.com/87201
Run-TryBot: Alex Vaghin <ddos@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
Alex Vaghin committed Jan 12, 2018
1 parent 5f55bce commit 13931e22f9e72ea58bb73048bc752b48c6d4d4ac
Showing with 387 additions and 83 deletions.
  1. +234 −82 acme/autocert/autocert.go
  2. +151 −0 acme/autocert/autocert_test.go
  3. +2 −1 acme/autocert/example_test.go

0 comments on commit 13931e2

Please sign in to comment.