security: In Certificate::encode, need to set the type to KEY.
diff --git a/src/security/certificate/certificate.cpp b/src/security/certificate/certificate.cpp
index b404a1f..6856a2a 100644
--- a/src/security/certificate/certificate.cpp
+++ b/src/security/certificate/certificate.cpp
@@ -104,6 +104,7 @@
 
   shared_ptr<vector<uint8_t> > blob = blobStream.buf();
   setContent(blob);
+  getMetaInfo().setType(ndn_ContentType_KEY);
 }
 
 void