DER encoding: Implement CertificateExtension::toDerBlob.
diff --git a/ndn-cpp/security/certificate/certificate-extension.cpp b/ndn-cpp/security/certificate/certificate-extension.cpp
index aba88dd..b2c1bad 100644
--- a/ndn-cpp/security/certificate/certificate-extension.cpp
+++ b/ndn-cpp/security/certificate/certificate-extension.cpp
@@ -6,10 +6,8 @@
  * See COPYING for copyright and distribution information.
  */
 
-#if 1 // TODO: Remove this when we don't throw "not implemented".
-#include <stdexcept>
-#endif
 #include "../../encoding/der/der.hpp"
+#include "../../util/blob-stream.hpp"
 #include <ndn-cpp/security/certificate/certificate-extension.hpp>
 
 using namespace std;
@@ -38,16 +36,12 @@
 Blob
 CertificateExtension::toDerBlob()
 {
-#if 0 // Need to convert blob_stream.
   blob_stream blobStream;
-  ostream& start = reinterpret_cast<ostream&>(blobStream);
+  der::OutputIterator& start = reinterpret_cast<der::OutputIterator&>(blobStream);
 
   toDer()->encode(start);
 
   return blobStream.buf();
-#else
-  throw std::runtime_error("not implemented");
-#endif
 }
 
 
diff --git a/ndn-cpp/security/identity/identity-manager.cpp b/ndn-cpp/security/identity/identity-manager.cpp
index c5a7793..3faf94b 100644
--- a/ndn-cpp/security/identity/identity-manager.cpp
+++ b/ndn-cpp/security/identity/identity-manager.cpp
@@ -6,7 +6,7 @@
  * See COPYING for copyright and distribution information.
  */
 
-#if 1
+#if 1 // TODO: Remove this when we don't throw "not implemented".
 #include <stdexcept>
 #endif
 #include <ctime>