security: In IdentityManager::generateKeyPair, don't convert the keyName.toUri to call getPublicKey.