tools: print correct certificate in ndnsec cert-dump

refs #4323

Change-Id: I28a044b79a461c58acb5855ac32e1bfb649edd56
This commit is contained in:
Junxiao Shi committed 2017-10-15 00:22:35 +00:00
1 parent c4a0176704
commit 478206eea1
1 file changed
+2 -2
+2 -2
View File
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
/*
* Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
@@ -146,7 +146,7 @@ ndnsec_cert_dump(int argc, char** argv)
certificate = keyChain.getPib()
.getIdentity(security::v2::extractIdentityFromCertName(name))
.getKey(security::v2::extractKeyNameFromCertName(name))
.getDefaultCertificate();
.getCertificate(name);
}
}
else {