diff options
Diffstat (limited to 'clients/autocert/autocert_wrapper.go')
-rw-r--r-- | clients/autocert/autocert_wrapper.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/clients/autocert/autocert_wrapper.go b/clients/autocert/autocert_wrapper.go index c8dd180..b174a62 100644 --- a/clients/autocert/autocert_wrapper.go +++ b/clients/autocert/autocert_wrapper.go | |||
@@ -7,10 +7,9 @@ import ( | |||
7 | 7 | ||
8 | "code.crute.us/mcrute/golib/clients/dns" | 8 | "code.crute.us/mcrute/golib/clients/dns" |
9 | glautocert "code.crute.us/mcrute/golib/crypto/acme/autocert" | 9 | glautocert "code.crute.us/mcrute/golib/crypto/acme/autocert" |
10 | fautocert "code.crute.us/mcrute/golib/crypto/acme/autocert/fork" | ||
10 | "code.crute.us/mcrute/golib/log" | 11 | "code.crute.us/mcrute/golib/log" |
11 | "code.crute.us/mcrute/golib/service" | 12 | "code.crute.us/mcrute/golib/service" |
12 | |||
13 | "golang.org/x/crypto/acme/autocert" | ||
14 | ) | 13 | ) |
15 | 14 | ||
16 | type AutocertConfig struct { | 15 | type AutocertConfig struct { |
@@ -21,7 +20,7 @@ type AutocertConfig struct { | |||
21 | } | 20 | } |
22 | 21 | ||
23 | type AutocertWrapper struct { | 22 | type AutocertWrapper struct { |
24 | *autocert.Manager | 23 | *fautocert.Manager |
25 | hostList *glautocert.ACMEHostList | 24 | hostList *glautocert.ACMEHostList |
26 | primingNotify chan string | 25 | primingNotify chan string |
27 | primaryHost string | 26 | primaryHost string |
@@ -41,9 +40,9 @@ func NewAutocertWrapper(ctx context.Context, c AutocertConfig) (*AutocertWrapper | |||
41 | hostList: hostList, | 40 | hostList: hostList, |
42 | primingNotify: make(chan string, 10), | 41 | primingNotify: make(chan string, 10), |
43 | primaryHost: c.Hosts[0], | 42 | primaryHost: c.Hosts[0], |
44 | Manager: &autocert.Manager{ | 43 | Manager: &fautocert.Manager{ |
45 | Cache: autocert.DirCache("ssl/"), | 44 | Cache: fautocert.DirCache("ssl/"), |
46 | Prompt: autocert.AcceptTOS, | 45 | Prompt: fautocert.AcceptTOS, |
47 | HostPolicy: hostList.HostPolicy, | 46 | HostPolicy: hostList.HostPolicy, |
48 | Email: c.Email, | 47 | Email: c.Email, |
49 | StapleOCSP: true, | 48 | StapleOCSP: true, |