main: keyring initialization