From e9b0b5247b6751376c3ca4b5d309ba33d46923b4 Mon Sep 17 00:00:00 2001 From: Romain Date: Wed, 6 Oct 2021 11:31:17 +0200 Subject: [PATCH] fix: missing preferred chain param for renew request (#1502) --- certificate/certificates.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/certificate/certificates.go b/certificate/certificates.go index 93952b4c02..497fe3ddf2 100644 --- a/certificate/certificates.go +++ b/certificate/certificates.go @@ -435,10 +435,11 @@ func (c *Certifier) Renew(certRes Resource, bundle, mustStaple bool, preferredCh } query := ObtainRequest{ - Domains: certcrypto.ExtractDomains(x509Cert), - Bundle: bundle, - PrivateKey: privateKey, - MustStaple: mustStaple, + Domains: certcrypto.ExtractDomains(x509Cert), + Bundle: bundle, + PrivateKey: privateKey, + MustStaple: mustStaple, + PreferredChain: preferredChain, } return c.Obtain(query) }