generate a new keypair if one isn't found in settings