From 3617f05836191506dd1f13cbb162fe255bfa2d63 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 28 Apr 2020 17:34:00 +0200 Subject: [PATCH] icinga2 pki save-cert: allow to specify --key and --cert refs #7992 --- lib/cli/pkisavecertcommand.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cli/pkisavecertcommand.cpp b/lib/cli/pkisavecertcommand.cpp index a946396f4..befd0eead 100644 --- a/lib/cli/pkisavecertcommand.cpp +++ b/lib/cli/pkisavecertcommand.cpp @@ -29,6 +29,10 @@ void PKISaveCertCommand::InitParameters(boost::program_options::options_descript ("trustedcert", po::value(), "Trusted certificate file path (output)") ("host", po::value(), "Parent Icinga instance to fetch the public TLS certificate from") ("port", po::value()->default_value("5665"), "Icinga 2 port"); + + hiddenDesc.add_options() + ("key", po::value()) + ("cert", po::value()); } std::vector PKISaveCertCommand::GetArgumentSuggestions(const String& argument, const String& word) const