-
Notifications
You must be signed in to change notification settings - Fork 29
Multiple private keys
One can use multiple private keys with Zimbra OpenPGP Zimlet version 2.5.4 and higher. This may be useful if you want to use your own private key and a department private key (for example).
Please note that the implementation of multiple private keys is less completed, this means that you (advanced user) must do more manual actions then you may be used to and some limitation apply.
To start using multiple private keys, you must first export them into a single armored block AND all private keys need to have the same password.
gpg2 --list-secret-keys
sec rsa1024/933E1A2C 2016-06-02 [SC]
uid [ unknown] Info Mailbox <[email protected]>
ssb rsa1024/F004BB5A 2016-06-02 [E]
sec rsa1024/EB2105A8 2016-06-02 [SC]
uid [ unknown] Barry de Graaff <[email protected]>
ssb rsa1024/B5051406 2016-06-02 [E]
gpg2 --armor --export-secret-keys 933E1A2C EB2105A8
-----BEGIN PGP PRIVATE KEY BLOCK-----
Open the Key Management window, select the keys you want, and click File -> Export Keys to File
and click Export Secret Keys
. This will give you an .asc file that you can open using a text editor.
You can copy/paste the single PGP PRIVATE KEY BLOCK into Zimbra OpenPGP Zimlet -> Manage Keys -> Private Key.
Please make sure to put the keys in correct order, as only the first one is used by default by the Zimlet.
To enable the feature, Zimbra OpenPGP Zimlet -> Manage Keys scroll all the way down and check the option Enable multiple private keys
.
Now each time you encrypt/decrypt/sign a message, an additional field Private Key#
is displayed that allows you to select another key.
TIP: you can disable Auto decrypt
in the Manage Keys dialog, in case you always want to select the proper key for decryption.