security: Implement IdentityManager::signByCertificate.