security: Construct KeyChain from configuration file.
Change-Id: Iaddac24e2c4e199fdde83fa1d0067a87e18729c4
Refs: #1532
diff --git a/tools/ndnsec-dsk-gen.hpp b/tools/ndnsec-dsk-gen.hpp
index a36a85b..d99ea2b 100644
--- a/tools/ndnsec-dsk-gen.hpp
+++ b/tools/ndnsec-dsk-gen.hpp
@@ -104,7 +104,7 @@
{
case 'r':
{
- newKeyName = keyChain.generateRSAKeyPair(Name(identityName), false, keySize);
+ newKeyName = keyChain.generateRsaKeyPair(Name(identityName), false, keySize);
if (0 == newKeyName.size())
{
std::cerr << "fail to generate key!" << std::endl;