This article describes how to configure Command Line to use a different key on your keyring to be the permanent default key. The --default-key option only specifies the default key to be used for that specific Command Line operation and is not persistent.
To configure a default key you will need to located and edit the PGPprefs.xml file. If you have specified a PGP_HOME_DIR environmental variable this will be located in that directory.
After you locate this file you should modify the following section:
In between the string section you should add the key id of the key that you would like to use as your permanent default key.
If you haven't specified a PGP_HOME_DIR variable then you can have a different default key for each different PGPprefs.xml file. If you have specified a PGP_HOME_DIR variable then each user will share a single PGPprefs.xml file and the change will be global to your system.
Imported Document ID: TECH148958
Subscribing will provide email updates when this Article is updated. Login is required.