Page MenuHome GnuPG

setpref does not update preferences secret key, needed for export-secret-keys
Closed, ResolvedPublic

Description

gpg --edit-key
setpref

Set symmetric cipher, hash, and compression preferences.

This sets the preferences in the public half of the key, i.e.,
~/.gnupg/pubring.gpg but does not set them in the private half of the key
secring.gpg. This can be seen with gpg --list-packets -v ~/.gnupg/secring.gpg

The problem then occurs when --export-secret-key is done. This exports from the
secret keyring, including the not-updated preferences.

Details

Version
1.4.21

Event Timeline

kenta added projects: gnupg, Bug Report.
kenta added a subscriber: kenta.
werner claimed this task.
werner added a project: Won't Fix.

Note that ff you have the secret key you can set the preferences.

Can't be fixed in 1.4 or 2.0. Has been fixed in 2.1.