Simplify keyring, hopefully works for macos.