migrateFromKeyStore