From 40388f1bf15adeb038aa0d87e57cee501dafd837 Mon Sep 17 00:00:00 2001 From: andres-portainer Date: Fri, 23 Jun 2023 20:33:47 -0300 Subject: [PATCH] fix(http-client): fix certificate rotation logic when EdgeInsecurePoll is enabled EE-5635 --- edge/client/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edge/client/build.go b/edge/client/build.go index 21ab9690..bffeffee 100644 --- a/edge/client/build.go +++ b/edge/client/build.go @@ -56,7 +56,7 @@ func fileModified(filename string, mtime time.Time) bool { } func (c *edgeHTTPClient) certsNeedsRotation() bool { - if c.options.SSLCert == "" || c.options.SSLKey == "" || c.options.SSLCACert == "" { + if c.options.EdgeInsecurePoll || c.options.SSLCert == "" || c.options.SSLKey == "" || c.options.SSLCACert == "" { return false }