split-gpg2 with a passphrase is not loaded into agent until listing the keys from the server #9688
Labels
affects-4.2
This issue affects Qubes OS 4.2.
C: split-gpg2
split-gpg version 2
needs diagnosis
Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed.
P: default
Priority: default. Default priority for new issues, to be replaced given sufficient information.
Qubes OS release
R4.2
Brief summary
I do not care much about passphrase in the gpg key, but as I was testing, I discovered something.
Keys are only loaded to split-gpg2 server (using isolated gnupg homedir) after they have been accessed first, such as
gpg --homedir ~/.gnupg/split-gpg/dev -k >/dev/null
.I have tested this without isolated homedir and it also happens.
Steps to reproduce
gpg --homedir ~/.gnupg/split-gpg/dev -k >/dev/null
gpg -K
will call the GUI pinentry, entering a correct password will list the key.Expected behavior
Load private keys on keyrings even with passphrases when calling qubes.Gpg2.
Actual behavior
Accessing the passphrase protected private key fails unless you access it on the server first (listing the keyring, not the key specifically, is enough).
The text was updated successfully, but these errors were encountered: