security: Fix bug in KeyChain::signByIdentity: Need to send the wireFormat to signByCertificate.