security: Fix bug in KeyChain::signByIdentity: Need to send the wireFormat to signByCertificate.
diff --git a/src/security/key-chain.cpp b/src/security/key-chain.cpp
index 6547337..37c1513 100644
--- a/src/security/key-chain.cpp
+++ b/src/security/key-chain.cpp
@@ -131,7 +131,7 @@
   if (!policyManager_->checkSigningPolicy(data.getName(), signingCertificateName))
     throw SecurityException("Signing Cert name does not comply with signing policy");
 
-  identityManager_->signByCertificate(data, signingCertificateName);  
+  identityManager_->signByCertificate(data, signingCertificateName, wireFormat);  
 }
 
 shared_ptr<Signature>