From 2c26ced7161f67652171fe9932e9fb9b2f2bd847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Tue, 5 Jan 2016 20:41:17 +0100 Subject: [PATCH] Use bundled certs to complete the chain --- letsencrypt/letsencrypt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt/letsencrypt.go b/letsencrypt/letsencrypt.go index 394bc662..8404cf1b 100644 --- a/letsencrypt/letsencrypt.go +++ b/letsencrypt/letsencrypt.go @@ -58,7 +58,7 @@ func Run(dir, domain, email, port string, onChange func()) (string, string, erro } func obtain(client *acme.Client, domain string) error { - cert, errors := client.ObtainCertificate([]string{domain}, false) + cert, errors := client.ObtainCertificate([]string{domain}, true) if err := errors[domain]; err != nil { if _, ok := err.(acme.TOSError); ok { err := client.AgreeToTOS() @@ -112,7 +112,7 @@ func renew(client *acme.Client, domain string) bool { meta.PrivateKey = key Renew: - newMeta, err := client.RenewCertificate(meta, false) + newMeta, err := client.RenewCertificate(meta, true) if err != nil { if _, ok := err.(acme.TOSError); ok { err := client.AgreeToTOS()