]> granicus.if.org Git - icinga2/blob - lib/cli/pkinewcacommand.cpp
add some object locking to the Dump method (which could theoreticylly suffer from...
[icinga2] / lib / cli / pkinewcacommand.cpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #include "cli/pkinewcacommand.hpp"
4 #include "remote/pkiutility.hpp"
5 #include "base/logger.hpp"
6
7 using namespace icinga;
8
9 REGISTER_CLICOMMAND("pki/new-ca", PKINewCACommand);
10
11 String PKINewCACommand::GetDescription() const
12 {
13         return "Sets up a new Certificate Authority.";
14 }
15
16 String PKINewCACommand::GetShortDescription() const
17 {
18         return "sets up a new CA";
19 }
20
21 /**
22  * The entry point for the "pki new-ca" CLI command.
23  *
24  * @returns An exit status.
25  */
26 int PKINewCACommand::Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const
27 {
28         return PkiUtility::NewCa();
29 }