From 9d55a8264de6c9be055aa6beb8cc773a99632d02 Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Tue, 3 Dec 2019 21:17:22 +0100 Subject: [PATCH] Fix open connections when agent waits for CA approval This closes the agent connection when the certificate sign requests waits for CA approval. refs #7680 --- lib/remote/jsonrpcconnection-pki.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/remote/jsonrpcconnection-pki.cpp b/lib/remote/jsonrpcconnection-pki.cpp index c538bb1de..dd5154e36 100644 --- a/lib/remote/jsonrpcconnection-pki.cpp +++ b/lib/remote/jsonrpcconnection-pki.cpp @@ -243,6 +243,8 @@ delayed_request: Log(LogInformation, "JsonRpcConnection") << "Certificate request for CN '" << cn << "' is pending. Waiting for approval."; + client->Disconnect(); + return result; }