Setpref is not working or is it a bug or something?

Robin Mathew Rajan mail at robinmathewrajan.com
Tue Nov 25 13:37:21 CET 2014


Hi all,

I edited gpg.conf and set the parameters as like this:

default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 CAMELLIA256 TWOFISH AES192 CAMELLIA192 CAMELLIA128 AES CAST5 IDEA BZIP2 ZLIB ZIP
personal-cipher-preferences AES256 CAMELLIA256 TWOFISH
personal-digest-preferences SHA512
personal-compress-preferences BZIP2

And used 'setpref' to include those newly updated preferences to my existing GPG Key!

I confirmed once again with 'showpref' if those preferences are set correctly. Saved the key and quit the GPG console.

Using Kleopatra, I deleted my GPG Key and imported it from the backup. After the importing, when I checked if those earlier preferences are retained in the key, I got quite astonished. Those preferences are not retained. The output is like this.

pub  4096R/47CF3842  created: 2014-09-21  expires: never       usage: SCEA
                     trust: ultimate      validity: ultimate
sub  4096R/9939A3DF  created: 2014-11-22  expires: never       usage: E
sub  4096R/4DA179AE  created: 2014-11-22  expires: never       usage: S
[ultimate] (1). Robin Mathew Rajan (https://www.robinmathewrajan.com/) <robinmathewrajan at yahoo.com>
[ultimate] (2)  Robin Mathew Rajan (https://www.robinmathewrajan.com/) <mail at robinmathewrajan.com>

[ultimate] (1). Robin Mathew Rajan (https://www.robinmathewrajan.com/) <robinmathewrajan at yahoo.com>
     Cipher: AES256, AES192, AES, CAST5, 3DES, IDEA
     Digest: SHA256, SHA1, SHA384, SHA512, SHA224
     Compression: ZLIB, BZIP2, ZIP, Uncompressed
     Features: MDC, Keyserver no-modify
[ultimate] (2)  Robin Mathew Rajan (https://www.robinmathewrajan.com/) <mail at robinmathewrajan.com>
     Cipher: AES256, AES192, AES, CAST5, 3DES, IDEA
     Digest: SHA256, SHA1, SHA384, SHA512, SHA224
     Compression: ZLIB, BZIP2, ZIP, Uncompressed
     Features: MDC, Keyserver no-modify


Screenshot: http://pub.robinmathewrajan.com/GnuPG_Users_Mailing_List/GPG_Preferences.png
	 
Why this happening and what is the solution to it?

I'm using Windows 7 SP1 and Gpg4win package.

Thanks,
Robin Mathew Rajan
https://www.robinmathewrajan.com/
-------------- next part --------------
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mQINBFQfTSwBEACSpTQS8hUqQDZ0rALoicc2eqh9Hkk+O8VATzntNdhPNLkKtJLd
0pUHv3UskrxxB776E+CeWD8P6WYJPiX1vaMN3UlSzM92P7ANqzMMZ8qa4L5HeKvL
IQdptbGFrkFXb/ITLWewphUYSrPG3YFTRz2tSjQHAzJmESI7wBxAB2nUbWxXFu01
xvGVC73tmeeWXrTa9qGAkFpjs127RUBiixShx6N5Stn+G6M9g/8TZHG+Y4hU44a3
xvrOYK75q6qVUStOlbfYJzNixsz3xP6mKPCpHaqqOXEpP2h9KKuxTGybkJsq6oeI
jWW1MCcZ2xPyFoGib6IKMRY/lGiPFmEjrdmSEQVaynBE8BXaqxaMEHfholCYDS8u
iNffmliLmUlTcCNvWxO66GEQwgekMr6cej6C5zCCKRjff4etyso+vIYK9rFf1vh5
HI0waIYvHkX0/YktCU9ldUvQG133Br5YpbHp9g/M2ZkC4U2uVKt9zn9S5XxND4i2
GZbNfi6Z+neAzIt26JSTEP/1WgmH6p8adMAMcCRssN404Ex5YDHMXiTtqrPo+Xio
vdcJgX1SMbmOWi4a06gBtLc6/3KRCdCBX+w8Dy6kCCWPngSojnk77LKy+Jse5hEW
Nr2RL6DL0/JLnqVzXRf5/Wp9B3DQIFf3DEX9hzuTzTMQXPaya5Dky8EjBwARAQAB
tFNSb2JpbiBNYXRoZXcgUmFqYW4gKGh0dHBzOi8vd3d3LnJvYmlubWF0aGV3cmFq
YW4uY29tLykgPHJvYmlubWF0aGV3cmFqYW5AeWFob28uY29tPokCOwQTAQIAJQIb
LwIeAQIXgAUCVHJC3woLCQ0KCAwLBwMBBRUKCQgLBBYDAgEACgkQfTpsWkfPOEKU
2xAAj7nJ95YEbDuEcdpVTVhobixs8uCj/iB5wYvecwwXY8nS43lBq/5WV9Y5LNws
ZVdtTT1El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