Skip to main content
Fix the command-line dashes and quotes.
Source Link
Stephen Kitt
  • 481.4k
  • 60
  • 1.2k
  • 1.4k

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious —default--default-key on the CLI anymore.

List your signatures:

gpg —list--list-signatures

Select your key to be that default. Then set the key default:

echo ‘default'default-key:0:”xxxxxxxxxxxxxxxxxxxx’"xxxxxxxxxxxxxxxxxxxx' | gpgconf —change--change-options gpg

pleasePlease note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that there is a pair of single-quotequotes surround the entire echo statement.

thereThere are three values separated by two colon symbols.:

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file. More on special flags.

Also for gpgconf, the —change--change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file. More on component names here.

Once the setting of default key is done, if you want to use a different key of yours, use the —local--local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this —default--default-key at on the command line or in gpg.conf settingsettings.

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious —default-key on the CLI anymore.

List your signatures:

gpg —list-signatures

Select your key to be that default. Then set the key default:

echo ‘default-key:0:”xxxxxxxxxxxxxxxxxxxx’ | gpgconf —change-options gpg

please note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that there is a pair of single-quote surround the entire echo statement.

there are three values separated by two colon symbols.

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file. More on special flags

Also for gpgconf, the —change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file. More on component names here.

Once the setting of default key is done, if you want to use a different key of yours, use the —local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this —default-key at command line or in gpg.conf setting.

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious --default-key on the CLI anymore.

List your signatures:

gpg --list-signatures

Select your key to be that default. Then set the key default:

echo 'default-key:0:"xxxxxxxxxxxxxxxxxxxx' | gpgconf --change-options gpg

Please note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that a pair of single-quotes surround the entire echo statement.

There are three values separated by two colon symbols:

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file. More on special flags.

Also for gpgconf, the --change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file. More on component names here.

Once the setting of default key is done, if you want to use a different key of yours, use the --local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this --default-key on the command line or in gpg.conf settings.

added 125 characters in body
Source Link
John Greene
  • 400
  • 2
  • 14

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious —default-key on the CLI anymore.

List your signatures:

gpg —list-signatures

Select your key to be that default. Then set the key default:

echo ‘default-key:0:”xxxxxxxxxxxxxxxxxxxx’ | gpgconf —change-options gpg

please note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that there is a pair of single-quote surround the entire echo statement.

there are three values separated by two colon symbols.

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file. More on special flags

Also for gpgconf, the —change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file. More on component names here.

Once the setting of default key is done, if you want to use a different key of yours, use the —local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this —default-key at command line or in gpg.conf setting.

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious —default-key on the CLI anymore.

List your signatures:

gpg —list-signatures

Select your key to be that default. Then set the key default:

echo ‘default-key:0:”xxxxxxxxxxxxxxxxxxxx’ | gpgconf —change-options gpg

please note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that there is a pair of single-quote surround the entire echo statement.

there are three values separated by two colon symbols.

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file. More on special flags

Also for gpgconf, the —change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file.

Once the setting of default key is done, if you want to use a different key of yours, use the —local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this —default-key at command line or in gpg.conf setting.

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious —default-key on the CLI anymore.

List your signatures:

gpg —list-signatures

Select your key to be that default. Then set the key default:

echo ‘default-key:0:”xxxxxxxxxxxxxxxxxxxx’ | gpgconf —change-options gpg

please note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that there is a pair of single-quote surround the entire echo statement.

there are three values separated by two colon symbols.

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file. More on special flags

Also for gpgconf, the —change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file. More on component names here.

Once the setting of default key is done, if you want to use a different key of yours, use the —local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this —default-key at command line or in gpg.conf setting.

added 9 characters in body
Source Link
John Greene
  • 400
  • 2
  • 14

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious —default-key on the CLI anymore.

List your signatures:

gpg —list-signatures

Select your key to be that default. Then set the key default:

echo ‘default-key:0:”xxxxxxxxxxxxxxxxxxxx’ | gpgconf —change-options gpg

please note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that there is a pair of single-quote surround the entire echo statement.

there are three values separated by two colon symbols.

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file. More on special flags

Also for gpgconf, the —change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file.

Once the setting of default key is done, if you want to use a different key of yours, use the —local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this —default-key at CLIcommand line or in gpg.conf setting.

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious —default-key on the CLI anymore.

List your signatures:

gpg —list-signatures

Select your key to be that default. Then set the key default:

echo ‘default-key:0:”xxxxxxxxxxxxxxxxxxxx’ | gpgconf —change-options gpg

please note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that there is a pair of single-quote surround the entire echo statement.

there are three values separated by two colon symbols.

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file.

Also for gpgconf, the —change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file.

Once the setting of default key is done, if you want to use a different key of yours, use the —local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this —default-key at CLI or in gpg.conf

These steps are for EVERY GPG signing. That is, you don’t want to use the tedious —default-key on the CLI anymore.

List your signatures:

gpg —list-signatures

Select your key to be that default. Then set the key default:

echo ‘default-key:0:”xxxxxxxxxxxxxxxxxxxx’ | gpgconf —change-options gpg

please note that there is only ONE double-quote, which signifies that a text string is about to begin. Also that there is a pair of single-quote surround the entire echo statement.

there are three values separated by two colon symbols.

  • First is the configuration keyword option “default-key”
  • Second is pretty much always ‘0’, which means no special flag bit set. ‘16’ means to delete the key from its configuration file. More on special flags

Also for gpgconf, the —change-options requires an argument. That argument indicates a component name that helps chooses which configuration file to make the change with. Component names used are commonly gpg for the ~/.gnupg/gpg.conf file and gpg-agent for ~/.gnupg/gpg-agent.conf file.

Once the setting of default key is done, if you want to use a different key of yours, use the —local-user <your name> on the gpg command line just for that message. Or the easier -u <your name> option instead.

Note that -u or --local-user overrides this —default-key at command line or in gpg.conf setting.

added 158 characters in body
Source Link
John Greene
  • 400
  • 2
  • 14
Loading
added 158 characters in body
Source Link
John Greene
  • 400
  • 2
  • 14
Loading
added 560 characters in body
Source Link
John Greene
  • 400
  • 2
  • 14
Loading
Source Link
John Greene
  • 400
  • 2
  • 14
Loading