GNOME Bugzilla – Bug 570706
wrong key is encrypted to
Last modified: 2018-08-03 19:13:36 UTC
Make sure you have at least 2 valid personal gpg keys Select or copy some text In the seahorse-applet select encrypt Encrypt to your primary key select decrypt from the applet you will be prompted for the passphrase for the other key
Created attachment 128072 [details] Test script I can't duplicate this. Does this script exhibit the problem (substituting a valid key id) for you?
That script works. I broke out my debugger and found out what's actually happening. The selected key is being encrypted to properly, but the proper default key isn't being set. The selection is falling through until "the first secret key" is selected. The result is that both keys are encrypted to, but because a test key is "first" it's the one the decrypt passphrase is prompted for. In gconf, my personal key is set as the default key per the preferences dialog. The reason I haven't uncovered this bug before is that I usually set myself as a signer and the signer is normally chosen first as the default key before gconf is queried.
I hope it's okay if I leave this in your capable hands.
Adam, is this working now?
I have had this same issue today, however I was using seahorse-plugins 2.30.1 and Adam's script doesn't reproduce it. Steps to reproduce: 1. Create several pgp keys (I had three) 2. In seahorse-preferences choose "When encrypting, always include myself as a recipient" and choose some "Default Key" 3. Encrypt a file just choosing some recipient different than you. The result is that now I click on the encrypted file and seahorse-tool asks me for the passphrase, but not the passphrase of my default key. If it didn't reproduce the behaviour, repeat from step 2 and choose another "Default Key".
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/seahorse/issues/27.