Update cert_tool.cpp
diff --git a/CertTool/cert_tool.cpp b/CertTool/cert_tool.cpp
index 98c2f5c..46a9656 100644
--- a/CertTool/cert_tool.cpp
+++ b/CertTool/cert_tool.cpp
@@ -105,7 +105,7 @@
                         }
                         return identityName;
                     }
-                    ndn::KeyChain::addCertificate(*(certificate));
+                    ndn::KeyChain::addCertificateAsIdentityDefault(*(certificate));
                 }
                 
                 certName=certificate->getName();
@@ -130,7 +130,7 @@
             try
             {
                 ndn::KeyChain::deleteCertificate(cert->getName());
-                ndn::KeyChain::addCertificate(*(cert));
+                ndn::KeyChain::addCertificateAsIdentityDefault(*(cert));
                 return true;
             }
             catch(InfoError& e)