Skip to main content

Create a GPG master key

While a master key can be used to sign without a subkey, we recommend that you use instead the master key to certify and create subkeys.

  • A master key can also be referred to as a certification key.

A GPG master key contains:

  • An RSA, ECDSA, or EdDSA keypair

  • User IDs (UIDs)

  • Self-signature for every master key's UID

  • A key that can certify

A master key can be used to:

  • Add or revoke subkeys

  • Add, change, or revoke the key's user identities (UIDs)

  • Add or change the expiration date on itself or any subkey

  • Sign other people's keys for web-of-trust purposes

Note

What is a User ID (UID)?

UIDs are assigned to the master key. They're used to identify your GPG key.

UID format

Name (Comment) <email>

UID examples

  • John Doe (Signing) john.doe@example.com

  • Jane Doe jane.doe@example.com

Tip

UIDs are shown in some GnuPG operations. Select a name, email address, and comment that are both professional and commonly used for PGP-protected communication, such as a company email.

Create a GPG master key