Merge pull request #7995 from Icinga/bugfix/pki-save-cert-key-7992

icinga2 pki save-cert: allow to specify --key and --cert
This commit is contained in:
Noah Hilverling 2020-06-03 15:51:18 +02:00 committed by GitHub
commit 45ee6b3b71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ void PKISaveCertCommand::InitParameters(boost::program_options::options_descript
("trustedcert", po::value<std::string>(), "Trusted certificate file path (output)")
("host", po::value<std::string>(), "Parent Icinga instance to fetch the public TLS certificate from")
("port", po::value<std::string>()->default_value("5665"), "Icinga 2 port");
hiddenDesc.add_options()
("key", po::value<std::string>())
("cert", po::value<std::string>());
}
std::vector<String> PKISaveCertCommand::GetArgumentSuggestions(const String& argument, const String& word) const