blob: bc9182fca10a5ef37146efb000f35a61c859a368 [file] [log] [blame]
Zhiyi Zhang08e0e982017-03-01 10:10:42 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
swa77020643ac2020-03-26 02:24:45 -07002/**
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -07003 * Copyright (c) 2017-2020, Regents of the University of California.
Zhiyi Zhang08e0e982017-03-01 10:10:42 -08004 *
5 * This file is part of ndncert, a certificate management system based on NDN.
6 *
7 * ndncert is free software: you can redistribute it and/or modify it under the terms
8 * of the GNU General Public License as published by the Free Software Foundation, either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * ndncert is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 * PARTICULAR PURPOSE. See the GNU General Public License for more details.
14 *
15 * You should have received copies of the GNU General Public License along with
16 * ndncert, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * See AUTHORS.md for complete list of ndncert authors and contributors.
19 */
20
Zhiyi Zhang08e0e982017-03-01 10:10:42 -080021#include "challenge-module.hpp"
Davide Pesaventob48bbda2020-07-27 19:41:37 -040022#include "client-module.hpp"
23
24#include <csignal>
Zhiyi Zhangb6fab0f2017-09-21 16:26:27 -070025#include <iostream>
Zhiyi Zhang1c0bd372017-12-18 18:32:55 +080026#include <string>
Davide Pesaventob48bbda2020-07-27 19:41:37 -040027
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -070028#include <boost/asio.hpp>
Davide Pesaventob48bbda2020-07-27 19:41:37 -040029#include <boost/program_options/options_description.hpp>
30#include <boost/program_options/parsers.hpp>
31#include <boost/program_options/variables_map.hpp>
32
Zhiyi Zhang1c0bd372017-12-18 18:32:55 +080033#include <ndn-cxx/security/verification-helpers.hpp>
Zhiyi Zhang08e0e982017-03-01 10:10:42 -080034
35namespace ndn {
36namespace ndncert {
37
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070038static void startApplication();
39
Zhiyi Zhang1c0bd372017-12-18 18:32:55 +080040int nStep;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070041Face face;
Davide Pesaventob48bbda2020-07-27 19:41:37 -040042security::KeyChain keyChain;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070043std::string challengeType;
Zhiyi Zhang36706832019-07-04 21:33:03 -070044int validityPeriod = -1;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070045ClientModule client(keyChain);
Zhiyi Zhang08e0e982017-03-01 10:10:42 -080046
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070047static std::list<std::string>
48captureParams(const JsonSection& requirement)
Zhiyi Zhang08e0e982017-03-01 10:10:42 -080049{
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070050 std::list<std::string> results;
Zhiyi Zhang547c8512019-06-18 23:46:14 -070051 for (const auto& item : requirement) {
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070052 std::cerr << item.second.get<std::string>("") << std::endl;
53 std::cerr << "Please provide the argument: " << item.first << " : " << std::endl;
54 std::string tempParam;
55 getline(std::cin, tempParam);
56 results.push_back(tempParam);
Zhiyi Zhang08e0e982017-03-01 10:10:42 -080057 }
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070058 std::cerr << "Got it. This is what you've provided:" << std::endl;
59 auto it1 = results.begin();
60 auto it2 = requirement.begin();
61 for (; it1 != results.end() && it2 != requirement.end(); it1++, it2++) {
62 std::cerr << it2->first << " : " << *it1 << std::endl;
Zhiyi Zhang08e0e982017-03-01 10:10:42 -080063 }
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070064 return results;
65}
Zhiyi Zhang08e0e982017-03-01 10:10:42 -080066
Zhiyi Zhang547c8512019-06-18 23:46:14 -070067static std::list<std::string>
68captureParams(const std::vector<std::string>& requirement)
69{
70 std::list<std::string> results;
71 for (const auto& item : requirement) {
72 std::cerr << "Please provide the argument: " << item << " : " << std::endl;
73 std::string tempParam;
74 getline(std::cin, tempParam);
75 results.push_back(tempParam);
76 }
77 std::cerr << "Got it. This is what you've provided:" << std::endl;
78 auto it1 = results.begin();
79 auto it2 = requirement.begin();
80 for (; it1 != results.end() && it2 != requirement.end(); it1++, it2++) {
81 std::cerr << *it2 << " : " << *it1 << std::endl;
82 }
83 return results;
84}
85
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -070086static void
Zhiyi Zhang36706832019-07-04 21:33:03 -070087captureValidityPeriod()
88{
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -070089 if (validityPeriod > 0) {
90 return;
91 }
92 std::cerr << "Step " << nStep++
93 << ": Please type in your expected validity period of your certificate."
94 << " Type the number of hours (168 for week, 730 for month, 8760 for year)."
95 << " The CA may reject your application if your expected period is too long." << std::endl;
96 std::string periodStr = "";
97 getline(std::cin, periodStr);
98 try {
99 validityPeriod = std::stoi(periodStr);
100 }
101 catch (const std::exception& e) {
102 validityPeriod = -1;
Zhiyi Zhang36706832019-07-04 21:33:03 -0700103 }
104}
105
106static void
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700107onNackCb()
108{
109 std::cerr << "Got NACK\n";
110}
111
112static void
113timeoutCb()
114{
115 std::cerr << "Interest sent time out\n";
116}
117
118static void
swa770cf1d8f72020-04-21 23:12:39 -0700119certFetchCb(const Data& reply)
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700120{
swa770cf1d8f72020-04-21 23:12:39 -0700121 client.onCertFetchResponse(reply);
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700122 std::cerr << "Step " << nStep++
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700123 << ": DONE! Certificate has already been installed to local keychain\n"
124 << "Certificate Name: " << cert->getName().toUri() << std::endl;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700125}
126
127static void
128challengeCb(const Data& reply)
129{
130 client.onChallengeResponse(reply);
131 if (client.getApplicationStatus() == STATUS_SUCCESS) {
132 std::cerr << "DONE! Certificate has already been issued \n";
swa770cf1d8f72020-04-21 23:12:39 -0700133 face.expressInterest(*client.generateCertFetchInterest(), bind(&certFetchCb, _2),
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700134 bind(&onNackCb), bind(&timeoutCb));
Zhiyi Zhang4d89fe02017-04-28 18:51:51 -0700135 return;
136 }
137
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700138 auto challenge = ChallengeModule::createChallengeModule(challengeType);
Zhiyi Zhang36706832019-07-04 21:33:03 -0700139 auto requirement = challenge->getRequirementForChallenge(client.getApplicationStatus(),
140 client.getChallengeStatus());
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700141 if (requirement.size() > 0) {
Zhiyi Zhang916ba2d2018-02-01 18:16:27 -0800142 std::cerr << "Step " << nStep++ << ": Please satisfy following instruction(s)\n";
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700143 std::string redo = "";
144 std::list<std::string> capturedParams;
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700145 capturedParams = captureParams(requirement);
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700146 auto it1 = capturedParams.begin();
147 auto it2 = requirement.begin();
148 for (; it1 != capturedParams.end() && it2 != requirement.end(); it1++, it2++) {
149 it2->second.put("", *it1);
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800150 }
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800151 }
Zhiyi Zhang36706832019-07-04 21:33:03 -0700152 face.expressInterest(*client.generateChallengeInterest(challenge->genChallengeRequestJson(client.getApplicationStatus(),
153 client.getChallengeStatus(),
154 requirement)),
155 bind(&challengeCb, _2), bind(&onNackCb), bind(&timeoutCb));
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700156}
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800157
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700158static void
159newCb(const Data& reply)
160{
Zhiyi Zhang36706832019-07-04 21:33:03 -0700161 int challengeIndex = 0;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700162 auto challengeList = client.onNewResponse(reply);
Zhiyi Zhang36706832019-07-04 21:33:03 -0700163 if (challengeList.size() < 1) {
164 std::cerr << "There is no available challenge provided by the CA. Exit" << std::endl;
165 return;
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800166 }
Zhiyi Zhang36706832019-07-04 21:33:03 -0700167 else if (challengeList.size() > 1) {
168 int count = 0;
169 std::string choice = "";
170 std::cerr << "Step " << nStep++ << ": Please type in the challenge index that you want to perform\n";
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700171 count = 0;
172 for (auto item : challengeList) {
173 std::cerr << "\t" << count++ << " : "<< item << std::endl;
174 }
175 getline(std::cin, choice);
176 try {
177 challengeIndex = std::stoi(choice);
178 }
179 catch (const std::exception& e) {
180 challengeIndex = -1;
181 }
182 if (challengeIndex < 0 || challengeIndex >= count) {
183 std::cerr << "Your input index is out of range. Exit." << std::endl;
184 return;
185 }
Zhiyi Zhang36706832019-07-04 21:33:03 -0700186 }
187 auto it = challengeList.begin();
188 std::advance(it, challengeIndex);
189 unique_ptr<ChallengeModule> challenge = ChallengeModule::createChallengeModule(*it);
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700190 if (challenge != nullptr) {
Zhiyi Zhang36706832019-07-04 21:33:03 -0700191 challengeType = *it;
192 std::cerr << "The challenge has been selected: " << challengeType << std::endl;
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800193 }
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700194 else {
Zhiyi Zhang36706832019-07-04 21:33:03 -0700195 std::cerr << "Error. Cannot load selected Challenge Module. Exit." << std::endl;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700196 return;
197 }
198 auto requirement = challenge->getRequirementForChallenge(client.getApplicationStatus(),
199 client.getChallengeStatus());
200 if (requirement.size() > 0) {
201 std::cerr << "Step " << nStep++ << ": Please satisfy following instruction(s)\n";
202 std::string redo = "";
203 std::list<std::string> capturedParams;
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700204 capturedParams = captureParams(requirement);
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700205 auto it1 = capturedParams.begin();
206 auto it2 = requirement.begin();
207 for (; it1 != capturedParams.end() && it2 != requirement.end(); it1++, it2++) {
208 it2->second.put("", *it1);
209 }
210 }
Zhiyi Zhang36706832019-07-04 21:33:03 -0700211 face.expressInterest(*client.generateChallengeInterest(challenge->genChallengeRequestJson(client.getApplicationStatus(),
212 client.getChallengeStatus(),
213 requirement)),
214 bind(&challengeCb, _2), bind(&onNackCb), bind(&timeoutCb));
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700215}
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800216
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700217static void
218probeInfoCb(const Data& reply)
219{
Zhiyi Zhangcaab5462019-10-18 13:41:02 -0700220 if (!client.verifyProbeInfoResponse(reply)) {
221 std::cerr << "The fetched CA information cannot be trusted because its integrity is broken" << std::endl;
222 return;
223 }
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700224 auto contentJson = ClientModule::getJsonFromData(reply);
225 auto caItem = ClientConfig::extractCaItem(contentJson);
226
Zhiyi Zhangcaab5462019-10-18 13:41:02 -0700227 std::cerr << "Will use a new trust anchor, please double check the identity info: \n"
Davide Pesaventob48bbda2020-07-27 19:41:37 -0400228 << "This trust anchor information is signed by " << reply.getSignatureInfo().getKeyLocator()
229 << std::endl
230 << "The certificate is " << caItem.m_anchor << std::endl
231 << "Do you trust the information? Type in YES or NO" << std::endl;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700232
233 std::string answer;
234 getline(std::cin, answer);
Zhiyi Zhang36706832019-07-04 21:33:03 -0700235 boost::algorithm::to_lower(answer);
236 if (answer == "yes") {
Zhiyi Zhangcaab5462019-10-18 13:41:02 -0700237 std::cerr << "You answered YES: new CA will be used" << std::endl;
238 client.addCaFromProbeInfoResponse(reply);
239 // client.getClientConf().save(std::string(SYSCONFDIR) + "/ndncert/client.conf");
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700240 startApplication();
241 }
242 else {
Zhiyi Zhangcaab5462019-10-18 13:41:02 -0700243 std::cerr << "You answered NO: new CA will not be used" << std::endl;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700244 return;
245 }
246}
247
248static void
249probeCb(const Data& reply)
250{
Zhiyi Zhang781a5602019-06-26 19:05:04 -0700251 client.onProbeResponse(reply);
Zhiyi Zhang36706832019-07-04 21:33:03 -0700252 captureValidityPeriod();
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700253 if (validityPeriod <= 0) {
254 std::cerr << "Invalid period time. Exit." << std::endl;
255 return;
256 }
Zhiyi Zhang781a5602019-06-26 19:05:04 -0700257 auto probeToken = make_shared<Data>(reply);
Zhiyi Zhang1a735bc2019-07-04 21:36:49 -0700258 auto now = time::system_clock::now();
Zhiyi Zhang36706832019-07-04 21:33:03 -0700259 std::cerr << "The validity period of your certificate will be: " << validityPeriod << " hours" << std::endl;
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700260 auto interest = client.generateNewInterest(now, now + time::hours(validityPeriod), Name(), probeToken);
261 if (interest != nullptr) {
262 face.expressInterest(*interest, bind(&newCb, _2), bind(&onNackCb), bind(&timeoutCb));
263 }
264 else {
265 std::cerr << "Cannot generate the Interest for NEW step. Exit" << std::endl;
266 }
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700267}
268
269static void
270startApplication()
271{
272 nStep = 0;
273 auto caList = client.getClientConf().m_caItems;
274 int count = 0;
275 for (auto item : caList) {
276 std::cerr << "***************************************\n"
277 << "Index: " << count++ << "\n"
278 << "CA prefix:" << item.m_caName << "\n"
279 << "Introduction: " << item.m_caInfo << "\n"
280 << "***************************************\n";
281 }
282 std::vector<ClientCaItem> caVector{std::begin(caList), std::end(caList)};
283 std::cerr << "Step "
284 << nStep++ << ": Please type in the CA INDEX that you want to apply"
285 << " or type in NONE if your expected CA is not in the list\n";
286
Zhiyi Zhang36706832019-07-04 21:33:03 -0700287 std::string caIndexS, caIndexSLower;
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700288 getline(std::cin, caIndexS);
Zhiyi Zhang36706832019-07-04 21:33:03 -0700289 caIndexSLower = caIndexS;
290 boost::algorithm::to_lower(caIndexSLower);
291 if (caIndexSLower == "none") {
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700292 std::cerr << "Step " << nStep << ": Please type in the CA Name\n";
Zhiyi Zhangcaab5462019-10-18 13:41:02 -0700293 std::string expectedCAName;
294 getline(std::cin, expectedCAName);
swa77020643ac2020-03-26 02:24:45 -0700295 face.expressInterest(*client.generateInfoInterest(Name(expectedCAName)),
Zhiyi Zhang36706832019-07-04 21:33:03 -0700296 bind(&probeInfoCb, _2), bind(&onNackCb), bind(&timeoutCb));
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700297 }
298 else {
Zhiyi Zhang36706832019-07-04 21:33:03 -0700299 int caIndex;
300 try {
301 caIndex = std::stoi(caIndexS);
302 }
303 catch (const std::exception& e) {
304 std::cerr << "Your input is neither NONE nor a valid index. Exit" << std::endl;
305 return;
306 }
307 if (caIndex < 0 || caIndex >= count) {
308 std::cerr << "Your input is not an existing index. Exit" << std::endl;
309 return;
310 }
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700311 auto targetCaItem = caVector[caIndex];
312
313 if (targetCaItem.m_probe != "") {
Zhiyi Zhang547c8512019-06-18 23:46:14 -0700314 std::cerr << "Step " << nStep++ << ": Please provide information for name assignment" << std::endl;
315 std::vector<std::string> probeFields = ClientModule::parseProbeComponents(targetCaItem.m_probe);
316 std::string redo = "";
317 std::list<std::string> capturedParams;
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700318 capturedParams = captureParams(probeFields);
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700319 std::string probeInfo;
Zhiyi Zhang547c8512019-06-18 23:46:14 -0700320 for (const auto& item : capturedParams) {
321 probeInfo += item;
322 probeInfo += ":";
323 }
324 probeInfo = probeInfo.substr(0, probeInfo.size() - 1);
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700325 face.expressInterest(*client.generateProbeInterest(targetCaItem, probeInfo),
Zhiyi Zhang36706832019-07-04 21:33:03 -0700326 bind(&probeCb, _2), bind(&onNackCb), bind(&timeoutCb));
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700327 }
328 else {
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700329 std::cerr << "Step " << nStep++ << ": Please type in the full identity name you want to get (with CA prefix)\n";
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700330 std::string identityNameStr;
331 getline(std::cin, identityNameStr);
Zhiyi Zhang36706832019-07-04 21:33:03 -0700332 captureValidityPeriod();
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700333 if (validityPeriod <= 0) {
334 std::cerr << "Invalid period time. Exit." << std::endl;
335 return;
336 }
337 Name idName(identityNameStr);
Zhiyi Zhang36706832019-07-04 21:33:03 -0700338 std::cerr << "The validity period of your certificate will be: " << validityPeriod << " hours" << std::endl;
Zhiyi Zhang1a735bc2019-07-04 21:36:49 -0700339 auto now = time::system_clock::now();
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700340 auto interest = client.generateNewInterest(now, now + time::hours(validityPeriod), idName);
341 if (interest != nullptr) {
342 face.expressInterest(*interest, bind(&newCb, _2), bind(&onNackCb), bind(&timeoutCb));
343 }
344 else {
345 std::cerr << "Cannot generate the Interest for NEW step. Exit" << std::endl;
346 }
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700347 }
348 }
349}
350
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700351static void
352handleSignal(const boost::system::error_code& error, int signalNum)
353{
354 if (error) {
355 return;
356 }
357 const char* signalName = ::strsignal(signalNum);
358 std::cerr << "Exiting on signal ";
359 if (signalName == nullptr) {
360 std::cerr << signalNum;
361 }
362 else {
363 std::cerr << signalName;
364 }
365 std::cerr << std::endl;
366 client.endSession();
367 face.getIoService().stop();
368}
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800369
370int
371main(int argc, char* argv[])
372{
Zhiyi Zhangad9e04f2020-03-27 12:04:31 -0700373 boost::asio::signal_set terminateSignals(face.getIoService());
374 terminateSignals.add(SIGINT);
375 terminateSignals.add(SIGTERM);
376 terminateSignals.async_wait(handleSignal);
377
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800378 namespace po = boost::program_options;
379 std::string configFilePath = std::string(SYSCONFDIR) + "/ndncert/client.conf";
Zhiyi Zhang36706832019-07-04 21:33:03 -0700380 po::options_description description("General Usage\n ndncert-client [-h] [-c] [-v]\n");
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800381 description.add_options()
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700382 ("help,h", "produce help message")
Davide Pesaventob48bbda2020-07-27 19:41:37 -0400383 ("config-file,c", po::value<std::string>(&configFilePath), "configuration file name")
384 ("validity-period,v", po::value<int>(&validityPeriod)->default_value(-1),
385 "desired validity period (hours) of the certificate being requested");
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800386 po::positional_options_description p;
387
388 po::variables_map vm;
389 try {
390 po::store(po::command_line_parser(argc, argv).options(description).positional(p).run(), vm);
391 po::notify(vm);
392 }
393 catch (const std::exception& e) {
394 std::cerr << "ERROR: " << e.what() << std::endl;
395 return 1;
396 }
397 if (vm.count("help") != 0) {
398 std::cerr << description << std::endl;
399 return 0;
400 }
Zhiyi Zhangd8993b92019-07-04 21:58:10 -0700401 try {
402 client.getClientConf().load(configFilePath);
403 }
404 catch (const std::exception& e) {
405 std::cerr << "Cannot load the configuration file: " << e.what() << std::endl;
406 return 1;
407 }
Zhiyi Zhangaf7c2902019-03-14 22:13:21 -0700408 startApplication();
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800409 face.processEvents();
410 return 0;
411}
412
413} // namespace ndncert
414} // namespace ndn
415
Zhiyi Zhang916ba2d2018-02-01 18:16:27 -0800416int main(int argc, char* argv[])
Zhiyi Zhang08e0e982017-03-01 10:10:42 -0800417{
418 return ndn::ndncert::main(argc, argv);
419}