Skip to content

Commit

Permalink
Fix open connections when agent waits for CA approval
Browse files Browse the repository at this point in the history
This closes the agent connection when the certificate sign requests
waits for CA approval.

refs #7680
  • Loading branch information
mcktr authored and N-o-X committed Oct 13, 2020
1 parent 63e76c2 commit ddd8cb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/remote/jsonrpcconnection-pki.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
Log(LogInformation, "JsonRpcConnection")
<< "Certificate request for CN '" << cn << "' is pending. Waiting for approval.";

client->Disconnect();

return result;
}

Expand Down

0 comments on commit ddd8cb4

Please sign in to comment.