CH-J Toolsserver management over SSH
Menu
All guides and articles →

OpenPGP subkeys: why they exist and how to use them

Primary key, signature and encryption subkeys, binding signatures, rotation, and long-term OpenPGP identity protection.

A certificate can contain multiple keys with different roles

An OpenPGP public certificate is not always a single public key. It can contain a primary key, user identities, multiple subkeys, and signatures that link these parts. A subkey has its own cryptographic material and fingerprint. Its affiliation with the primary key is to be verified, not inferred from a similar file name.

This arrangement allows long-term identity management to be separated from frequent operations. The primary key can serve as a certification and link management tool, while separate subkeys sign documents or accept encrypted messages. The exact roles depend on the capabilities of the algorithm, the attributes of the key, and the application policy.

The roles C, S, E and A do not mean the same thing

The abbreviations C for certification, S for signature, E for encryption, and A for authentication are often used in reports. One algorithm may not be able to do all the roles. The signing subkey cannot be automatically used for decryption, and the presence of an authentication flag does not prove support for a particular login protocol in your client.

For a typical profile, a primary certification key, a signing subkey, and an encryption subkey might be appropriate. However, this is not a universal, mandatory structure for every user. First, determine who will use the certificate, what operations it needs, and what programs need to handle them. On the other hand, redundant subkeys without records can complicate management.

Binding signature is more important than the number of items

The subkey must be validly bound to the primary key corresponding to the signature. For signature subkeys, the verification also includes the appropriate proof of the backlink according to the profile rules. A parser that only prints numeric values has not yet proven their cryptographic validity. The number of subkeys displayed is only one part of the check.

When transmitting via a keyserver, compare the entire relevant structure and the capability of the subsequent operation. A matching primary fingerprint may accompany the result without the necessary subkey or its valid binding. Such a certificate may appear in the list, but the recipient may not be able to securely verify the signature or encrypt the message with it.

The primary private part can be separated from regular work

A properly supported approach allows you to keep the long-term primary private key off the everyday device and use the necessary subkeys for routine operations. This reduces the exposure of the main identity. However, it is important to understand export: a public certificate, a private export, and an export of selected secret subkeys are not the same output.

Do not attempt to separate with a single existing copy. First, prepare a protected backup and verify recovery in a safe environment. Check which secret material is actually available after import. The presence of an entry in the list does not mean that you have a private section for all declared roles.

Viewing an existing certificate

gpg --with-subkey-fingerprint --list-keys CELÝ_OTISK
gpg --with-subkey-fingerprint --list-secret-keys CELÝ_OTISK

Replace the placeholder text with a verified fingerprint. The first listing shows public data, the second listing shows availability of secrets in the environment. This is not an export, but before sharing, consider the diagnostics based on personal data and names. For hardware or disconnected keys, the list may show a link or status that needs to be interpreted correctly.

Also look for roles, expiration, revocation, and the entire subkey fingerprint in the graphical application. If the interface only shows one summary item, do not infer the missing structure from that. For detail, use a trusted tool that actually supports the profile. For CH-J Tools, the specific release and exported form are decisive.

Rotation and restoration of old data

A new subkey can be added without creating a completely new primary identity, if the profile and key management allow it. The updated certificate must be received by the recipients and relevant distribution services. Creating a subkey on one machine does not update their stored copies. Prepare a verified transition and test the actual operation.

The old decryption subkey may be needed for historical messages even after its normal validity period for new encryption has expired. Do not delete a single private copy during cleanup just because it no longer accepts new use. The backup should take into account data history, passphrases, and the ability to restore in a compatible environment.

Subkey leak and identity lifecycle

In case of compromise, determine whether a specific subkey or the primary private part has been leaked. The impact and revocation options vary. Revocation of a subkey does not automatically revoke the entire primary identity, but partners must receive appropriate updates. Time and historical assessment of signatures requires its own rules.

  • The role of each subkey has a clear purpose.
  • The bindings are cryptographically verified.
  • Secret exports contain only the intended material.
  • The rotation is accompanied by the distribution and test of the update.
  • Historical decryption data remains recoverable.

Subkeys are useful when they simplify the separation of powers and the key lifecycle. A higher number of items alone does not increase security. What matters is clear recordkeeping, protection of private parts, and the ability of recipients to verify the entire updated certificate.

Frequently asked questions

Does the subkey have its own fingerprint?

Yes. Its binding to the primary key needs to be verified correctly.

Can I delete the old encryption subkey?

First, consider restoring historically encrypted data. Its secret part may still be necessary.

Does adding a subkey send the update to all recipients?

Not automatically. Distributing the updated certificate is a separate step.

Detailed documentation

IETF: OpenPGP subkeys and binding signatures →

GnuPG: OpenPGP key management →

Biometric unlock and security →

All tutorials by category →