From feb9fb63739824dc9c7bed86edb94ccc1995105f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Aug 2026 13:14:57 +0000 Subject: [PATCH 1/3] Append CA certificate to complete TLS chain in AutoCert plugin Co-authored-by: drk1wi <2052966+drk1wi@users.noreply.github.com> --- plugin/autocert.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/autocert.go b/plugin/autocert.go index 6217dbd..58fdf4b 100644 --- a/plugin/autocert.go +++ b/plugin/autocert.go @@ -158,6 +158,7 @@ func init() { buf = new(bytes.Buffer) pem.Encode(buf, &pem.Block{Type: "CERTIFICATE", Bytes: cert}) + pem.Encode(buf, &pem.Block{Type: "CERTIFICATE", Bytes: catls.Certificate[0]}) tlscertStr := buf.String() config.C.TLSCertificate = &tlscertStr From 192962c0587fe612e56f49a9252236d3f95ea005 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Aug 2026 13:25:29 +0000 Subject: [PATCH 2/3] Add attribution comment crediting original PR #362 author Co-authored-by: drk1wi <2052966+drk1wi@users.noreply.github.com> --- plugin/autocert.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/autocert.go b/plugin/autocert.go index 58fdf4b..c8962af 100644 --- a/plugin/autocert.go +++ b/plugin/autocert.go @@ -158,6 +158,7 @@ func init() { buf = new(bytes.Buffer) pem.Encode(buf, &pem.Block{Type: "CERTIFICATE", Bytes: cert}) + // Append the CA certificate to complete the chain, so TLS clients can verify it (credit: @standerksen, PR #362) pem.Encode(buf, &pem.Block{Type: "CERTIFICATE", Bytes: catls.Certificate[0]}) tlscertStr := buf.String() From b072f6eeb390229b57fc061bca21f44e5d4f8bf8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Aug 2026 13:25:57 +0000 Subject: [PATCH 3/3] Move attribution out of code comment into PR/commit metadata Co-authored-by: standerksen <8461154+standerksen@users.noreply.github.com> Co-authored-by: drk1wi <2052966+drk1wi@users.noreply.github.com> --- plugin/autocert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/autocert.go b/plugin/autocert.go index c8962af..382de5d 100644 --- a/plugin/autocert.go +++ b/plugin/autocert.go @@ -158,7 +158,7 @@ func init() { buf = new(bytes.Buffer) pem.Encode(buf, &pem.Block{Type: "CERTIFICATE", Bytes: cert}) - // Append the CA certificate to complete the chain, so TLS clients can verify it (credit: @standerksen, PR #362) + // Append the CA certificate to complete the chain, so TLS clients can verify it. pem.Encode(buf, &pem.Block{Type: "CERTIFICATE", Bytes: catls.Certificate[0]}) tlscertStr := buf.String()