1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #include "cli/pkinewcacommand.hpp"
4 #include "remote/pkiutility.hpp"
5 #include "base/logger.hpp"
7 using namespace icinga;
9 REGISTER_CLICOMMAND("pki/new-ca", PKINewCACommand);
11 String PKINewCACommand::GetDescription() const
13 return "Sets up a new Certificate Authority.";
16 String PKINewCACommand::GetShortDescription() const
18 return "sets up a new CA";
22 * The entry point for the "pki new-ca" CLI command.
24 * @returns An exit status.
26 int PKINewCACommand::Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const
28 return PkiUtility::NewCa();