[Question] Unlock gnome keyring from command line
I'm using Yubikey to login to my Gnome session. However, password-less login can not decrypt the login keyring. And a keyring without password is insecure.
So I want to write a script, to decrypt my login password from a encrypted file, then unlock the login keyring
with it, then unlock every other keyring with the password in the login keyring
.
The script should looks like:
# This script runs after starting gnome.
login_pswd=$(gpg -d /home/recolic/keys/my_login_pswd.asc) &&
# GPG will ask for my Yubikey to decrypt the file.
gnome-unlock-keyring --keyring-name=login --password="$login_pswd"
Is there a tool like gnome-unlock-keyring
? Thanks!
Edited by Ghost User