security: In IdentityManager::signByCertificate, don't need to set the key name type since it is the default. Reorganize signByCertificate(buffer) to look like signByCertificate(Data).